Delete a repository - CodeArtifact

Delete a repository

You can delete a repository using the CodeArtifact console or the AWS CLI. After a repository has been deleted, you can no longer push packages to it or pull packages from it. All packages in the repository become permanently unavailable and cannot be restored. You can create a repository with the same name, but its contents are empty.

Delete a repository (console)

  1. Open the AWS CodeArtifact console at

  2. On the navigation pane, choose Repositories, then choose the repository that you want to delete.

  3. Choose Delete.

Delete a repository (AWS CLI)

Use the delete-repository command to delete a repository.

aws codeartifact delete-repository --domain my-domain --domain-owner domain-owner-id --repository my-repo

Example output:

{ "repository": { "name": "my-repo", "administratorAccount": "123456789012", "domainName": "my-domain", "domainOwner": "123456789012", "arn": "arn:aws:codeartifact:region-id:123456789012:repository/my-domain/my-repo", "upstreams": [], "externalConnections": [] } }