Delete a domain
You can delete a domain using the CodeArtifact console or the AWS Command Line Interface (AWS CLI). You can't delete a domain that contains repositories. Before you delete the domain, you must first delete its repositories. For more information, see Delete a repository.
Delete a domain (console)
-
Open the AWS CodeArtifact console at https://console.aws.amazon.com/codesuite/codeartifact/home
. -
In the navigation pane, choose Domains, then choose the domain that you want to delete.
-
Choose Delete.
Delete a domain (AWS CLI)
Use the delete-domain command to delete a domain.
aws codeartifact delete-domain --domain
my_domain
--domain-owner111122223333
JSON-formatted data appears in the output with details about the deleted domain.
{ "domain": { "name": "
my_domain
", "owner": "111122223333
", "arn": "arn:aws:codeartifact:us-west-2
:111122223333
:domain/my_domain
", "status": "Active", "encryptionKey": "arn:aws:kms:us-west-2
:111122223333
:key/your-kms-key
", "repositoryCount": 0, "assetSizeBytes": 0, "createdTime": "2020-10-12T16:51:18.039000-04:00" } }