:doc:`CodeCatalyst <../../codecatalyst>` / Client / delete_source_repository

************************
delete_source_repository
************************



.. py:method:: CodeCatalyst.Client.delete_source_repository(**kwargs)

  

  Deletes a source repository in Amazon CodeCatalyst. You cannot use this API to delete a linked repository. It can only be used to delete a Amazon CodeCatalyst source repository.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/DeleteSourceRepository>`_  


  **Request Syntax**
  ::

    response = client.delete_source_repository(
        spaceName='string',
        projectName='string',
        name='string'
    )
    
  :type spaceName: string
  :param spaceName: **[REQUIRED]** 

    The name of the space.

    

  
  :type projectName: string
  :param projectName: **[REQUIRED]** 

    The name of the project in the space.

    

  
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the source repository.

    

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

    
    ::

      {
          'spaceName': 'string',
          'projectName': 'string',
          'name': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **spaceName** *(string) --* 

        The name of the space.

        
      

      - **projectName** *(string) --* 

        The name of the project in the space.

        
      

      - **name** *(string) --* 

        The name of the repository.

        
  
  **Exceptions**
  
  *   :py:class:`CodeCatalyst.Client.exceptions.ThrottlingException`

  
  *   :py:class:`CodeCatalyst.Client.exceptions.ConflictException`

  
  *   :py:class:`CodeCatalyst.Client.exceptions.ValidationException`

  
  *   :py:class:`CodeCatalyst.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`CodeCatalyst.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CodeCatalyst.Client.exceptions.AccessDeniedException`

  