Emptying a directory bucket - Amazon Simple Storage Service
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).

Emptying a directory bucket

You can empty an Amazon S3 directory bucket by using the Amazon S3 console. For more information about directory buckets, see Directory buckets.

Before you empty a directory bucket, note the following:

  • When you empty a directory bucket, you delete all the objects, but you keep the directory bucket.

  • After you empty a directory bucket, the empty action can't be undone.

  • Objects that are added to the directory bucket while the empty bucket action is in progress might be deleted.

If you also want to delete the bucket, note the following:

  • All objects in the directory bucket must be deleted before the bucket itself can be deleted.

  • In-progress multipart uploads in the directory bucket must be aborted before the bucket itself can be deleted.


    The s3 rm command through the Amazon Command Line Interface (CLI), the delete operation through Mountpoint, and the Empty bucket option button through the Amazon Web Services Management Console are unable to delete in-progress multipart uploads in a directory bucket. To delete these in-progress multipart uploads, use the ListMultipartUploads operation to list the in-progress multipart uploads in the bucket and use the AbortMultupartUpload operation to abort all the in-progress multipart uploads.

To delete a directory bucket, see Deleting a directory bucket. To abort an in-progress multipart upload, see Aborting a multipart upload.

To empty a general purpose bucket, see Emptying a bucket.

To empty a directory bucket
  1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/.

  2. In the left navigation pane, choose Buckets.

  3. Choose the Directory buckets tab.

  4. Choose the option button next to the name of the bucket that you want to empty, and then choose Empty.

  5. On the Empty bucket page, confirm that you want to empty the bucket by entering permanently delete in the text field, and then choose Empty.

  6. Monitor the progress of the bucket emptying process on the Empty bucket: status page.