Deleting a Repository
Find out how to delete a repository from Container Registry.
There is a limit to the number of repositories that you can have in any given region in a tenancy. So when you no longer need a repository, delete it from Container Registry. Any images in a repository are deleted when you delete the repository.
Your permissions control which repositories you can delete (see Policies to Control Repository Access). You can delete repositories that you've created, and repositories that the groups to which you belong have been granted access by IAM policies. If you belong to the Administrators group, you can delete any repository in the tenancy.
When you delete a repository, it can take up to 48 hours for the deletion to take effect and for storage to be released. If you're deleting repositories to release storage, you can also contact us to obtain more storage.
To delete a repository from Container Registry using the Console:
- Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Container Registry.
- Select the region that contains the repository.
Select the compartment that contains the repository.
The Repositories and images field lists the repositories in the selected region and compartment to which you have access.
- From the list, select the repository that you want to delete.
Click Delete repository and confirm that you want to delete the repository and associated images.
The repository is permanently removed from Container Registry.
Use the oci artifacts container repository delete command and required parameters to delete a repository:
oci artifacts container repository delete --repository-id <repository-ocid> [OPTIONS]
oci artifacts container repository delete --repository-id ocid1.containerrepo.oc1.us-phoenix-1.0.ansh81vru1zp.aaaaaaaaswec83o...
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the DeleteContainerRepository operation to delete a repository.