Delete Archive (DELETE archive)
This operation deletes an archive from a vault. Subsequent requests to initiate a retrieval of this archive will fail. Archive retrievals that are in progress for this archive ID may or may not succeed according to the following scenarios:
If the archive retrieval job is actively preparing the data for download when Amazon Glacier receives the delete archive request, the archival retrieval operation might fail.
If the archive retrieval job has successfully prepared the archive for download when Amazon Glacier receives the delete archive request, you will be able to download the output.
For more information about archive retrieval, see Downloading an Archive in Amazon Glacier. This operation is idempotent. Attempting to delete an already-deleted archive does not result in an error.
To delete an archive you send a
DELETE request to the archive resource
ArchiveIDHTTP/1.1 Host: glacier.
AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '
-' (hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.
This operation does not use request parameters.
This operation uses only request headers that are common to all operations. For information about common request headers, see Common Request Headers.
This operation does not have a request body.
HTTP/1.1 204 No Content x-amzn-RequestId: x-amzn-RequestId Date: Date
This operation uses only response headers that are common to most responses. For information about common response headers, see Common Response Headers.
This operation does not return a response body.
For information about Amazon Glacier exceptions and error messages, see Error Responses.
The following example demonstrates how to delete an archive from the vault named
The ID of the archive to be deleted is specified as a subresource of
DELETE /-/vaults/examplevault/archives/NkbByEejwEggmBz2fTHgJrg0XBoDfjP4q6iu87-TjhqG6eGoOY9Z8i1_AUyUsuhPAdTqLHy8pTl5nfCFJmDl2yEZONi5L26Omw12vcs01MNGntHEQL8MBfGlqrEXAMPLEArchiveId HTTP/1.1 Host: glacier.us-west-2.amazonaws.com x-amz-Date: 20141123T120000Z x-amz-glacier-version: 2012-06-01 Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20141123/us-west-2/glacier/aws4_request,SignedHeaders=host;x-amz-date;x-amz-glacier-version,Signature=9257c16da6b25a715ce900a5b45b03da0447acf430195dcb540091b12966f2a2
If the request is successful, Amazon Glacier responds with
204 No Content to
indicate that the archive is deleted.
HTTP/1.1 204 No Content x-amzn-RequestId: AAABZpJrTyioDC_HsOmHae8EZp_uBSJr6cnGOLKp_XJCl-Q Date: Sun, 23 Nov 2014 12:00:00 GMT