:doc:`CodeCommit <../../codecommit>` / Client / delete_repository

*****************
delete_repository
*****************



.. py:method:: CodeCommit.Client.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 <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository>`_  


  **Request Syntax**
  ::

    response = client.delete_repository(
        repositoryName='string'
    )
    
  :type repositoryName: string
  :param repositoryName: **[REQUIRED]** 

    The name of the repository to delete.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'repositoryId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the output of a delete repository operation.

      
      

      - **repositoryId** *(string) --* 

        The ID of the repository that was deleted.

        
  
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryNameRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidRepositoryNameException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyDisabledException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyNotFoundException`

  
  *   :py:class:`CodeCommit.Client.exceptions.EncryptionKeyUnavailableException`

  