Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_object

delete_object(**kwargs)

Deletes an object at the specified path.

See also: AWS API Documentation

Request Syntax

response = client.delete_object(
    Path='string'
)
Parameters
Path (string) --

[REQUIRED]

The path (including the file name) where the object is stored in the container. Format: <folder name>/<folder name>/<file name>

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • MediaStoreData.Client.exceptions.ContainerNotFoundException
  • MediaStoreData.Client.exceptions.ObjectNotFoundException
  • MediaStoreData.Client.exceptions.InternalServerError