Bulk Destroying Resources and Deleting Stacks

For the specified compartment, use the following script to delete all the stacks in Resource Manager and destroy all the resources associated with the corresponding stacks.

This script runs destroy jobs on all provisioned resources in a compartment and then deletes all associated stacks.

  1. Update the compartment OCID in the following script.
  2. Run the script using the following command.
    ./destroy_delete_stacks_bulk_cloud_shell.sh <compartment_id>

Was this article helpful?