Deleting Multiple Resources in a Compartment

Learn how to delete multiple resources between compartments at one time.

  • This task can't be performed using the Console.

  • Use the bulk-delete-resources command and required parameters to delete multiple resources between compartments at one time:

    oci iam compartment bulk-delete-resources --generate-param-json-input resources > resources.json

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the BulkDeleteResources operation to delete multiple resources in a compartment.