Keeping your OCI tenancy tidy with OCI-SuperDelete ๐Ÿ—‘๏ธ

My test tenancy for OCI is a bit of a mess and I needed to give it a tidy-up to remove resources that I no longer used – rather than go through every resource individually and delete it, I found a way to automate this using the superb OCI-SuperDelete script.

I needed to delete all of the resources within a specific OCI Compartment. This can all be achieved using a single command with the script!

The easiest way to run this is using OCI Cloud Shell, using the following commands, which do the following:

  • Downloads the OCI-SuperDelete scripts from GitHub
  • Runs the delete script for a specific OCI Compartment – you need to specify the OCID of the compartment
git clone https://github.com/AnykeyNL/OCI-SuperDelete.git
cd OCI-SuperDelete
python delete.py -dt -c [compartment_OCID]

Here is a short video of me using OCI-SuperDelete.

Here it is after the script has completed (which took less than five minutes).

This is a very powerful (and potentially dangerous tool ๐Ÿ”ฅ), so please be careful when using it!

It includes far more advanced capabilities than I’ve demonstrated here, further details can be found at https://github.com/AnykeyNL/OCI-SuperDelete/blob/master/README.md

Happy tidying! ๐Ÿงน.

Comments

One response to “Keeping your OCI tenancy tidy with OCI-SuperDelete ๐Ÿ—‘๏ธ”

  1. arcadedark5110f6e8ec Avatar
    arcadedark5110f6e8ec

    [heart] Katie Armstrong reacted to your message:

    Like

Leave a comment