Set a lifecycle policy
Apply lifecycle rules to a bucket to expire objects or move them to another tier
mc ilm import myminio/my-bucket < lifecycle.json
- tool
- minio10 commands
More minio commands
-
mc rm myminio/my-bucket/path/to/file.txtDelete one object from a bucket
-
mc rb --force myminio/my-bucketDelete a bucket and all its objects
-
mc alias set myminio https://minio.example.com ACCESSKEY SECRETKEYAdd a MinIO server to the mc client
-
mc ls myminioShow all buckets on the server
-
mc mb myminio/my-bucketCreate a new S3-compatible bucket