# mc idp ldap accesskey rm

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

---

<a id="mc-idp-ldap-accesskey-rm"></a>
<a id="minio-mc-idp-ldap-accesskey-rm"></a>

<a id="command-mc.idp.ldap.accesskey.rm"></a>

<a id="command-mc.idp.ldap.accesskey.remove"></a>

## Description {#description}

The [`mc idp ldap accesskey rm`](#command-mc.idp.ldap.accesskey.rm) deletes the specified access key from the local server.

[`mc idp ldap accesskey rm`](#command-mc.idp.ldap.accesskey.rm) is also known as [`mc idp ldap accesskey remove`](#command-mc.idp.ldap.accesskey.remove).

This command works against [access keys](/administration/identity-access-management/minio-user-management/#minio-id-access-keys) created by an AD/LDAP user after authenticating to MinIO.

Create AD/LDAP service accounts with the [`mc idp ldap accesskey create`](/reference/minio-mc/mc-idp-ldap-accesskey-create/#command-mc.idp.ldap.accesskey.create) command.

MinIO supports using [AssumeRoleWithLDAPIdentity](/developers/security-token-service/AssumeRoleWithLDAPIdentity/#minio-sts-assumerolewithldapidentity) to generate temporary access keys using the [Security Token Service](/developers/security-token-service/#minio-security-token-service).

**EXAMPLE**

> The following example deletes the access key `mykey` from the `minio` deployment:

```shell
mc idp ldap accesskey rm minio/ mykey
```

**SYNTAX**

The command has the following syntax:

```shell
mc [GLOBALFLAGS] idp ldap accesskey rm              \
                                 ALIAS              \
                                 KEY
```

- Replace `ALIAS` with the [alias](/reference/minio-mc/mc-alias-set/#alias) of a MinIO deployment configured for AD/LDAP integration.
- Replace `KEY` with the access key to delete.

- 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}

##### `ALIAS` {#mc.idp.ldap.accesskey.remove.ALIAS}

*mc-cmd*

*Required*

The [alias](/reference/minio-mc/mc-alias-set/#alias) of the MinIO deployment configured for AD/LDAP.

For example:

```text
mc idp ldap accesskey ls minio
```

##### `KEY` {#mc.idp.ldap.accesskey.remove.KEY}

*mc-cmd*

*Required*

The configured access key to delete.

### Example {#example}

Delete the access key `mykey` from the `minio` deployment.

```shell
mc idp ldap accesskey rm minio/ mykey
```

### Global Flags {#global-flags}

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

## Behavior {#behavior}

### S3 Compatibility {#s3-compatibility}

SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is [best effort](/reference/minio-mc/#command-mc).
