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.
You can only delete empty repositories. Before you delete a repository, you must delete its artifacts. See Deleting an Artifact in Artifact Registry.
- Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
- Under List scope, choose a compartment that contains the repositories.
- Click the name of the repository that you want to delete.
- Click Delete.
- 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.