Skip to main content

Remove bucket

Last update:
For your information

If the bucket has a bucket policy, it must allow the deletion of each object in the bucket and the deletion of the bucket itself; for more details, see the Actions subsection in the General Information About Bucket Policies guide.

Buckets containing no more than 500,000 objects (including object segments) can be removed via the control panel. Buckets with a larger number of objects can only be removed via the API.

It may take up to 24 hours to remove the bucket. During the removal process, no action can be taken with the bucket except for stopping the removal.

Objects in a bucket are deleted one by one. During bucket removal, outbound traffic and storage volume for objects that have not yet been deleted are charged. DELETE requests are not charged. For more details on payment and consumption, see the S3 payment model and pricing guide.

If in the bucket:

  • versioning is enabled — a bucket with versions will not be deleted automatically; it must be deleted manually;
  • if Object Lock is used — only non-locked objects will be deleted. Locked objects and the bucket itself will not be deleted.

Remove bucket

Before deletion, complete all API requests to objects in the bucket.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Buckets section.
  3. In the bucket row, click .
  4. Enter the bucket name and click Remove. The bucket row will display the Deleting status. Once the deletion is complete, a pop-up notification will appear.

Possible errors

If an error occurs, a pop-up notification will appear:

  • Error while removing bucket — an internal error, create a ticket;
  • Task limit reached — the limit on deletion tasks has been exceeded (no more than 10 buckets can be removed simultaneously). Wait for other tasks to complete and remove the bucket.

Stop removal

If bucket removal is still in progress, it can be stopped. When you stop removal, only the objects that have not yet been deleted remain in the bucket.

  1. In the control panel, on the top menu, click Products and select S3.
  2. Go to the Buckets section.
  3. Click the link with the notification about the number of buckets being removed.
  4. In the bucket row, click .