mc admin policy rm
Syntax
Removes a custom IAM policy from a SILO deployment (rejected if the policy is still in use; unmodified built-in policies cannot be removed). In the Server 20261026, removing an explicit built-in policy override immediately resets it to its native definition while retaining the deletion revision against stale overrides (see Console policy management).
The mc admin policy remove command has equivalent functionality to mc admin policy rm.
The following command removes the policy names project-readonly from the myminio MinIO deployment:
The command has the following syntax:
- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
The mc admin policy rm command accepts the following arguments:
TARGET
mc-cmd
The alias of a configured MinIO deployment from which to remove the policy.
POLICYNAME
mc-cmd
The name of the policy to remove.
Global Flags
This command supports any of the global flags.
Examples
Remove a policy called listbuckets.