github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/docs/bucket/quota/README.md (about) 1 # Bucket Quota Configuration Quickstart Guide [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io) [![Docker Pulls](https://img.shields.io/docker/pulls/minio/minio.svg?maxAge=604800)](https://hub.docker.com/r/minio/minio/) 2 3 ![quota](https://raw.githubusercontent.com/minio/minio/master/docs/bucket/quota/bucketquota.png) 4 5 Buckets can be configured to have `Hard` quota - it disallows writes to the bucket after configured quota limit is reached. 6 7 ## Prerequisites 8 9 - Install MinIO - [MinIO Quickstart Guide](https://min.io/docs/minio/linux/index.html#procedure). 10 - [Use `mc` with MinIO Server](https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart) 11 12 ## Set bucket quota configuration 13 14 ### Set a hard quota of 1GB for a bucket `mybucket` on MinIO object storage 15 16 ```sh 17 mc admin bucket quota myminio/mybucket --hard 1gb 18 ``` 19 20 ### Verify the quota configured on `mybucket` on MinIO 21 22 ```sh 23 mc admin bucket quota myminio/mybucket 24 ``` 25 26 ### Clear bucket quota configuration for `mybucket` on MinIO 27 28 ```sh 29 mc admin bucket quota myminio/mybucket --clear 30 ```