Deleting a Repository in Artifact Registry

Delete an empty repository in Artifact Registry.


You can only delete empty repositories. Before you delete a repository, you must delete its artifacts. See Deleting an Artifact in Artifact Registry.
    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
    2. Under List scope, choose a compartment that contains the repositories.
    3. Click the name of the repository that you want to delete.
    4. Click Delete.
    5. When prompted for confirmation, click Delete.
  • To delete a repository, use the artifacts repository resource, referenced in Artifact Registry CLI.

    Get all the commands for artifacts repository:

    oci artifacts repository -h

    Get help for the delete command:

    oci artifacts repository delete -h

    Find the options to provide for the delete command:


    Delete a repository:

    oci artifacts repository delete --repository-id <repository-OCID>


    oci artifacts repository delete --repository-id
  • Use the DeleteRepository operation to delete a repository.