Deleting a bucket
Written by
Updated at April 8, 2026
If you have a bucket and it is empty, you can delete it.
Warning
Before deleting the bucket, make sure it does not contain any objects. You cannot delete a bucket with objects in it.
CLI
Management console
-
Get a list of buckets in the project:
kubectl get bucket -n <project_name> -
Make sure the bucket is empty. Delete all objects via the S3 API if you no longer need them.
-
Delete the bucket resource:
kubectl delete bucket <bucket_name> -n <project_name> -
Make sure the bucket was deleted:
kubectl get bucket -n <project_name>
- If you have not opened a project yet, select one.
- In the left-hand menu, select Object Storage.
- Select the bucket.
- Click Delete bucket.
- Confirm the deletion.