mc ilm tier rm
Description
The mc ilm tier rm
command removes an remote tier that has not been used to transition any objects.
The mc ilm tier remove
command has equivalent functionality to mc ilm tier rm
Note
Once a tier has transitioned objects, it cannot be removed.
Required Permissions
MinIO requires the following permissions scoped to to the bucket or buckets for which you are creating lifecycle management rules.
MinIO also requires the following administrative permissions on the cluster in which you are creating remote tiers for object transition lifecycle management rules:
For example, the following policy provides permission for configuring object transition lifecycle management rules on any bucket in the cluster:.
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"admin:SetTier",
"admin:ListTier"
],
"Effect": "Allow",
"Sid": "EnableRemoteTierManagement"
},
{
"Action": [
"s3:PutLifecycleConfiguration",
"s3:GetLifecycleConfiguration"
],
"Resource": [
"arn:aws:s3:::*"
],
"Effect": "Allow",
"Sid": "EnableLifecycleManagementRules"
}
]
}
Syntax
The command has the following syntax:
The following example removes an existing remote tier called WARM-TIER
on the myminio
deployment.
No objects have transitioned to the WARM-TIER
tier.
mc ilm tier rm myminio WARM-TIER
The command has the following syntax:
mc ilm tier info TARGET TIER_NAME
Parameters
The command accepts the following arguments:
- TARGET
- Required
The
alias
of a configured MinIO deployment on which the desired tier exists.
Global Flags
This command supports any of the global flags.
S3 Compatibility
The mc commandline tool is built for compatibility with the AWS S3 API and is tested with MinIO and AWS S3 for expected functionality and behavior.
MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.
Required Permissions
For permissions required to remove a tier, refer to the required permissions on the parent command.