Deletes the specified object in the specified bucket. Once deleted, the object can only be restored if versioning was enabled when the object was deleted.
If attempting to delete an object that does not exist, Amazon S3 will return a success message instead of an error message.
@param bucketName The name of the Amazon S3 bucket containing the object to delete. @param key The key of the object to delete. @throws AmazonClientException If any errors are encountered on the client while making the request or handling the response. @throws AmazonServiceException If any errors occurred in Amazon S3 while processing the request. @see {@link AmazonS3Client#deleteObject(DeleteObjectRequest deleteObjectRequest)}true
then delete all versions of the document, otherwise delete only the document object specified (default is true
)
This method can be performed by anonymous services. @param bucket the bucket containing the object to be deleted. @param objectKey the key representing the object in S3. @throws S3ServiceException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|