delete_repository
(**kwargs)¶Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.
Warning
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.
See also: AWS API Documentation
Request Syntax
response = client.delete_repository(
repositoryName='string'
)
[REQUIRED]
The name of the repository to delete.
{
'repositoryId': 'string'
}
Response Structure
Represents the output of a delete repository operation.
The ID of the repository that was deleted.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredException
CodeCommit.Client.exceptions.InvalidRepositoryNameException
CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException
CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException
CodeCommit.Client.exceptions.EncryptionKeyDisabledException
CodeCommit.Client.exceptions.EncryptionKeyNotFoundException
CodeCommit.Client.exceptions.EncryptionKeyUnavailableException