delete_container

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

Request Syntax

response = client.delete_container(
    ContainerName='string'
)
Parameters
ContainerName (string) --

[REQUIRED]

The name of the container to delete.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • MediaStore.Client.exceptions.ContainerInUseException
  • MediaStore.Client.exceptions.ContainerNotFoundException
  • MediaStore.Client.exceptions.InternalServerError