mc ilm rm
Deletes object lifecycle rules created on a bucket.
Run mc ilm rm to delete an object lifecycle rule or all object
lifecycle rules created on a bucket.
Syntax
mc ilm rm [FLAGS] TARGET
FLAGS:
--id value id of the lifecycle rule
--force force flag is to be used when deleting all lifecycle configuration rules for the bucket
--all delete all lifecycle configuration rules of the bucket, force flag enforced
--json enable JSON lines formatted output
--debug enable debug output
--insecure disable SSL certificate verification
--help, -h show help
Parameters
| Parameter | Description |
|---|---|
--id |
The rule ID of the object lifecycle rule to be deleted.
id is case-sensitive. |
--force |
Use this option to forcibly delete all object lifecycle rules for a bucket. |
--all |
Use this option to delete all object lifecycle rules. |
--json |
Use the option to display output in JSON format. |
--debug |
Use the option to enable debug mode for output. |
--insecure |
Use the option to disable SSL certificate verification while running the command. |
--help |
Use this option to display the command help. |
Example
-
Remove the object lifecycle rule having the ID 'newrule' for the bucket 'mybucket' on the alias 'myminio'.
mc ilm rm --id "newrule" myminio/mybucket - Remove all the object lifecycle rules for mybucket on alias 'myminio'.
mc ilm rm --all --force myminio/mybucket