1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00
Files
docs/source/reference/deprecated/mc-ilm-rm.rst
Andrea Longo 091a321e32 Improve mc deprecated reference: cleanup, move mc admin top (#1019)
First batch of mc deprecation cleanup:

[x] Reorder section TOC: `mc` alphabetical, then `mc admin`
alphabetical.
[x] Standardize deprecation notice format and wording.
[x] Move `mc admin top` to deprecated section.

Staged

http://192.241.195.202:9000/staging/DOCS-896-cleanup-mc-admin-top/linux/reference/minio-mc-deprecated.html

Partially addresses https://github.com/minio/docs/issues/896
2023-10-05 10:29:02 -06:00

2.9 KiB

mc ilm rm

minio

Table of Contents

mc ilm remove

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.

The mc ilm remove command has equivalent functionality to mc ilm rm.

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