When you no longer require an Oracle Java Cloud Service instance, you can delete it. Your account is no longer charged for the instance.
Only a Java administrator can delete a service instance.
Note:If you created a service instance by using a QuickStart template, you cannot delete the service instance from the Oracle Java Cloud Service console. Using a QuickStart template creates an entire stack for you , so you must delete the entire stack from the Stack console.
The service can be running or stopped before you attempt to delete it. If the service instance is stopped, you must check Force Delete on the Delete Service dialog for proper schema cleanup.
Resources such as IP addresses are removed.
Storage volumes attached to the VMs hosting the Oracle Java Cloud Service instance are removed.
The Autonomous Transaction Processing database, Oracle Cloud Infrastructure database, or Oracle Database Cloud Service (Classic) database deployment is not deleted when you delete the Oracle Java Cloud Service instance, only the database repository and schemas are deleted.
If you created your instance with one Oracle Database Cloud Service (Classic) database for Oracle required schemas and a second for application schemas, neither database deployment is deleted. Your account continues to be charged for the database instances. You might want to retain these database deployments for use with other service instances; otherwise, you must delete the Oracle Database Cloud Service (Classic) databases manually to avoid being charged for them.
The object storage container is not deleted when you delete the Oracle Java Cloud Service instance. However, service backups are deleted from the container if the Administration Server VM is in a running state when the instance is deleted. Oracle Database Cloud Service backups are not deleted.
After the service instance is deleted, your account continues to be charged for the object storage space used. You might want to retain the data in object storage for use with other service instances; otherwise, you must delete the storage container manually to avoid being charged for it..
To delete an Oracle Java Cloud Service instance:
This option is also available from the menu on the Oracle Java Cloud Service Instance page.
- Navigate to the Oracle Java Cloud Service Console.
- From the menu for the service instance, select Delete.The Delete Service dialog is displayed.
- In the Delete Service dialog box that opens, set the following options and click Delete:
Database Administrator User Name—Enter the name of the database administrator user that was specified when the Autonomous Transaction Processing database, Oracle Cloud Infrastructure database, or Oracle Database Cloud Service database deployment was created. This user owns the Oracle Required Schema in the database. If your service instance is using multiple database deployments, specify the name of the administrator for the database deployment that hosts the Oracle Required Schema.
Database Administrator User Password—Enter the Database Administrator user password.
Force Delete—(Optional) Select this checkbox if you want the Oracle Java Cloud Service instance to be deleted even if the database cannot be reached to delete the database schemas. If enabled, you may need to delete the associated database schemas manually on the database if they are not deleted as part of the service instance delete operation.
Once deleted, the Oracle Java Cloud Service is removed from the list of service instances displayed on the Oracle Java Cloud Service Console.
If there is a problem deleting the service instance, the Retry Delete displays. Click the Retry Delete button to attempt to clean up any remaining resources and delete the service instance completely. The Retry Delete button is displayed for as long as the failed resources exist. Repeat this process, as necessary, until the Retry Delete button is no longer displayed.
If the deletion process times out before all cleanup is complete, billing for the service instance stops. Oracle Java Cloud Service periodically retries cleanup until the service instance is successfully deleted. You can try deletion cleanup manually:
Click on Instance create and delete history on the Oracle Java Cloud Service Console.
Select the service instance. The status of the service instance will be Deletion Failed.
Click Retry Delete to initiate cleanup again.