< Previous | Contents | Next >

Deleting an object or folder

You use the HTTP DELETE method to delete an object or folder in a bucket. To check the delete an object, you need delete permission for the bucket containing the object or for the object itself. To delete a folder, you need delete permission for the bucket.


You cannot delete an old version of an object. You also cannot delete a deleted version, even if it is the current version.


 

Request lineRequest headersResponse headersHTTP status codesExamplesExample 1: Deleting an objectExample 2: Deleting a folder