To delete and clean up the Oracle Restart Database deployed using Oracle Database Operator, run the following commands.
This example uses oraclerestart_prov.yaml to clean up an Oracle Restart Database that was initially used for deployment:
-
Use the file
oraclerestart_prov.yamlto delete an existing deployment:kubectl delete -f oraclerestart_prov.yaml oraclerestart.database.oracle.com/oraclerestart-sample deleted
-
Check the status of the deployment:
# Check the status of the Kubernetes Pods: kubectl get all -n orestart -
If your deleted deployment used a software location specified by
hostSwLocationfrom the worker node, then to reuse this location in your next deployment, you must clear it at the worker node level. -
If your deleted deployment used ASM Disks from the worker node, then to reuse the same disks for the next deployment, you must clear the disks at the worker node level using the
ddcommand.