Step 5: Delete an Archive from a Vault in S3 Glacier - Amazon S3 Glacier
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

If you're new to archival storage in Amazon Simple Storage Service (Amazon S3), we recommend that you start by learning more about the S3 Glacier storage classes in Amazon S3, S3 Glacier Instant Retrieval, S3 Glacier Flexible Retrieval, and S3 Glacier Deep Archive. For more information, see S3 Glacier storage classes and Storage classes for archiving objects in the Amazon S3 User Guide.

Step 5: Delete an Archive from a Vault in S3 Glacier

In this step, you'll delete the sample archive that you uploaded in Step 3: Upload an Archive to a Vault in S3 Glacier.

Important

You cannot delete an archive by using the Amazon S3 Glacier console. Any archive operation, such as upload, download, or deletion, requires you to use the Amazon Command Line Interface (CLI) or write code. To upload data, such as photos, videos, and other documents, you must either use the Amazon CLI or write code to make requests, by using either the REST API directly or by using the Amazon SDKs.

To install the Amazon CLI, see Amazon Command Line Interface. For more information about using S3 Glacier with the Amazon CLI, see Amazon CLI Reference for S3 Glacier. For examples of using the Amazon CLI to upload archives to S3 Glacier, see Using S3 Glacier with the Amazon Command Line Interface.

Delete the sample archive by following one of these SDKs or the Amazon CLI: