This PR applies updates to numerous files to address changes in the two
December 2022 `mc` releases.
- Deprecates `mc admin bucket quota` and links to new commands
- Adds `mc quota set | clear | info` commands
- Adds `attach | detach` subcommands to `mc admin idp ldap policy`
- Updates list of call types available to `mc admin trace`
- Updates `mc` page with new commands
- Fixes minor errors in `mc cp`
- Adds `--limit-*` flags to global flag options
- Adds `--versions` flag to `mc find`
Closes #685
- Updates ilm commands for new structure for tiers and rules
- Deprecates `mc admin tier`
- Deprecates `mc ilm add | edit | export | import | ls | rm` commands
- Adds new `mc ilm rule` and six subcommands
- Adds new `mc ilm tier` and six subcommands
- Updates references to ilm and admin tier commands throughout docs
- Adds new deprecated commands page
- Adds `mc ilm rule` and `mc ilm tier` holding pages with toctrees
- Closes #691
- Closes #662
3.0 KiB
mc ilm rule rm
minio
Table of Contents
mc ilm rule rm
RELEASE.2022-12-24T15-21-38Z
mc ilm rule rm replaces mc ilm rm.
Syntax
The mc ilm rule rm
command removes an object lifecycle management rule from a MinIO
Bucket.
EXAMPLE
The following command removes a single lifecycle management rule from
the mydata bucket on the myminio MinIO
deployment:
mc ilm rule rm --id "bgrt1ghju" myminio/mydata
SYNTAX
The command has the following syntax:
mc [GLOBALFLAGS] ilm rule rm \
--id "string" | (--all --force) \
ALIAS \
Parameters
ALIAS
The alias <alias> and full path to the bucket on the
MinIO deployment to which to remove the object lifecycle management
rule. For example:
mc ilm rule rm myminio/mydata
--all
Removes all rules in the bucket. Requires including ~mc ilm rule rm --force.
Mutually exclusive with ~mc ilm rule rm --id.
--force
Required if specifying ~mc ilm rule rm --all.
--id
The unique ID of the rule. Use mc ilm rule ls to list bucket rules and retrieve the
id for the rule you want to remove.
Mutually exclusive with mc ilm rule rm --all
Global Flags
Examples
Remove a Bucket Lifecycle Management Rule
Use mc ilm rule rm to
remove a bucket lifecycle management rule:
mc ilm rule rm --id "RULE" ALIAS/PATH
- Replace
RULEwith the unique identifier of the lifecycle management rule. Usemc ilm rule lsto find the ID to use. - Replace
ALIAS <mc ilm rule rm ALIAS>with thealias <mc alias>of the S3-compatible host. - Replace
PATHwith the path to the bucket on the S3-compatible host.
Required Permissions
For permissions required to remove a rule, refer to the required permissions <minio-mc-ilm-rule-permissions>
on the parent command.