Deleting a Repository in Artifact Registry

Delete an empty repository in Artifact Registry.

Important

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:

    --repository-id

    Delete a repository:

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

    Example:

    oci artifacts repository delete --repository-id ocid1.artifactrepository.oc1..xxx...
  • Use the DeleteRepository operation to delete a repository.