Deleting a Repository
Find out how to delete a repository from Container Registry.
Deleting a repository deletes all images in that repository. When the top-level capability is enabled, this includes images at the repository root and all child paths. For example, deleting repository app deletes images referenced as app:v1, app/backend:v1, and app/frontend:v1.
Deleting a pull-through cache repository deletes the repository and its locally cached images. Images in the configured upstream registry are not affected.
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.
- On the Container Registry list page, select the repository that you want to work with. If you need help finding the list page or the repository, see Listing Repositories.
- From the Actions menu for the repository, select Delete.
- When prompted, confirm the deletion.
The repository you deleted is permanently removed from Container Registry. It no longer appears on the Container Registry list page.
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]For example:
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.