# mc admin policy rm

LLMS index: [llms.txt](/llms.txt)

---

<a id="mc-admin-policy-rm"></a>

<a id="command-mc.admin.policy.remove"></a>

<a id="command-mc.admin.policy.rm"></a>

## Syntax {#syntax}

Removes an IAM policy from the target MinIO deployment.

The [`mc admin policy remove`](#command-mc.admin.policy.remove) command has equivalent functionality to [`mc admin policy rm`](#command-mc.admin.policy.rm).

**EXAMPLE**

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

```shell
mc admin policy rm myminio writeonly
```

**SYNTAX**

The command has the following syntax:

```shell
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.

### Parameters {#parameters}

The [`mc admin policy rm`](#command-mc.admin.policy.rm) command accepts the following arguments:

##### `TARGET` {#mc.admin.policy.rm.TARGET}

*mc-cmd*

The [`alias`](/reference/minio-mc/mc-alias/#command-mc.alias) of a configured MinIO deployment from which to remove the policy.

##### `POLICYNAME` {#mc.admin.policy.rm.POLICYNAME}

*mc-cmd*

The name of the policy to remove.

### Global Flags {#global-flags}

This command supports any of the [global flags](/reference/minio-mc/#minio-mc-global-options).

## Examples {#examples}

Remove a policy called `listbuckets`.

```shell
mc admin policy rm myminio listbuckets
```
