GithubHelp home page GithubHelp logo

ericmharris / oci-superdelete Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anykeynl/oci-superdelete

0.0 0.0 0.0 98 KB

Delete all OCI resources in a compartment

License: GNU General Public License v3.0

Python 100.00%

oci-superdelete's Introduction

OCI-SuperDelete

Delete all OCI resources in a compartment.

Initial development by Richard Garsthagen - www.oc-blog.com

Contributors (Thank you!!!)

Running the script

how to run:

python3 delete.py -c <CompartmentID>

WORK_IN_PROGRESS

This script is still being worked on, not all OCI resources have been added yet. Currently supported:

  • Compute resources
  • Database and Autonomous Database resources
  • Edge Services
  • File Storage services
  • Tag Namespaces
  • Block Storage, Block Volume Backups, Volume Groups, Volume Group Backups
  • Resource Manager Stacks
  • VCN resources
  • Autoscaling policies
  • Notifications
  • Alarms
  • Applications and Functions
  • DataScience Projects and Notebooks
  • Container Cluster resources
  • Nosql tables
  • Data Catalogs
  • Digital Assistants
  • Policies
  • KMS Vaults and Keys**
  • API Gateways

** KMS Vaults and Keys can not instantly be deleted, but require a minimal 7 day grace period. The script will move all keys and vaults to the upper compartment and will schedule the deletion with 7 days grace period. This will allow all sub compartments to be instantly deleted, while the top compartment will only be able to be deleted after the grace period.

Purpose

The purpose of this script is to remove all resources from a compartment, including subcompartments. In OCI you can only remove a compartment when it contains no more resources, but it can be a challenge to find all the resources tied to a compartment.

This script will hunt for all resources in a compartment and delete/terminate/retire them.

Disclaimer

This is a personal repository. Any code, views or opinions represented here are personal and belong solely to me and do not represent those of people, institutions or organizations that I may or may not be associated with in professional or personal capacity, unless explicitly stated.

oci-superdelete's People

Contributors

anykeynl avatar allenkubai avatar t-srikanth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.