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

************
delete_space
************



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

  

  Deletes a space.

   

  .. warning::

     

    Deleting a space cannot be undone. Additionally, since space names must be unique across Amazon CodeCatalyst, you cannot reuse names of deleted spaces.

    

  

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


  **Request Syntax**
  ::

    response = client.delete_space(
        name='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the space. To retrieve a list of space names, use  ListSpaces.

    

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

    
    ::

      {
          'name': 'string',
          'displayName': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The name of the space.

        
      

      - **displayName** *(string) --* 

        The friendly name of the space displayed to users of the space in Amazon CodeCatalyst.

        
  
  **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`

  