Skip to main content

Remove bucket

For your information

If the bucket has an access policy, it must allow the deletion of every object in the bucket and the deletion of the bucket itself; for more information, see the Actions subsection of the General information about access policies.

Buckets that contain no more than 500 000 objects (including object segments) can be deleted via the Control Panel. Buckets with a larger number of objects can only be deleted via API.

Bucket removal may take up to 24 hours. During the removal process, you cannot perform any actions on the bucket, except for stopping the removal.

Objects in a bucket are deleted one by one. During bucket removal, egress traffic and the storage volume of objects not yet deleted are charged. DELETE requests are not charged. For more details on payment and consumption, see the S3 Payment Model and Prices guide.

If a bucket has:

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

Remove bucket

Before removal, complete all API requests related 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 Delete. The bucket row will display the Deleting status. A pop-up notification will appear once the removal is complete.

Possible errors

In case of an error, a pop-up notification will appear:

  • Bucket removal error — an internal error occurred, create a ticket;
  • Job limit reached — the limit on removal jobs has been exceeded (no more than 10 buckets can be removed simultaneously). Wait for other jobs to finish and remove the bucket.

Stop removal

If bucket removal has not finished, you can stop it. When removal is stopped, 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 .