1
0
mirror of https://github.com/minio/docs.git synced 2025-05-28 00:41:14 +03:00
Daryl White 00de8dbeb6
Updates to mc docs for December 2022 releases (#697)
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
2023-01-10 15:47:02 -06:00

2.8 KiB

mc ilm rm

minio

Table of Contents

mc ilm rm

RELEASE.2022-12-24T15-21-38Z

mc ilm rm replaced by mc ilm rule rm

Syntax

The mc ilm 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 rm --id "bgrt1ghju" myminio/mydata

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] ilm rm                          \
                 --id "string" | (--all --force) \
                 ALIAS                           \

Parameters

ALIAS

Required 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 rm myminio/mydata

all

Required Removes all rules in the bucket. Mutually exclusive with mc ilm rm id.

Mutually exclusive with mc ilm rm id

Requires including ~mc ilm rm force.

force

Required if specifying ~mc ilm rm all.

id

Required 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 rm all

Global Flags

Examples

Remove a Bucket Lifecycle Management Rule

Use mc ilm rm to remove a bucket lifecycle management rule:

mc ilm rm --id "RULE" ALIAS/PATH
  • Replace RULE <mc ilm rm id> with the unique name of the lifecycle management rule.
  • Replace ALIAS <mc ilm rm ALIAS> with the alias <mc alias> of the S3-compatible host.
  • Replace PATH <mc ilm rm ALIAS> with the path to the bucket on the S3-compatible host.

Behavior

S3 Compatibility