:doc:`MediaStore <../../mediastore>` / Client / delete_container

****************
delete_container
****************



.. py:method:: MediaStore.Client.delete_container(**kwargs)

  

  Deletes the specified container. Before you make a ``DeleteContainer`` request, delete any objects in the container or in any folders in the container. You can delete only empty containers.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainer>`_  


  **Request Syntax**
  ::

    response = client.delete_container(
        ContainerName='string'
    )
    
  :type ContainerName: string
  :param ContainerName: **[REQUIRED]** 

    The name of the container to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MediaStore.Client.exceptions.ContainerInUseException`

  
  *   :py:class:`MediaStore.Client.exceptions.ContainerNotFoundException`

  
  *   :py:class:`MediaStore.Client.exceptions.InternalServerError`

  