mc admin policy rm


Removes an IAM policy from the target MinIO deployment.

The mc admin policy remove command has equivalent functionality to mc admin policy rm.

The following command removes the policy names writeonly from the myminio MinIO deployment:

mc admin policy rm myminio writeonly

The command has the following syntax:

mc admin policy rm TARGET POLICYNAME
  • 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.


The mc admin policy rm command accepts the following arguments:


The alias of a configured MinIO deployment from which to remove the policy.


The name of the policy to remove.

Global Flags

This command supports any of the global flags.


Remove a policy called listbuckets.

mc admin policy rm myminio listbuckets