# mc admin accesskey rm

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

---

<a id="mc-admin-accesskey-rm"></a>
<a id="minio-mc-admin-accesskey-remove"></a>

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

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

## Syntax {#syntax}

The [`mc admin accesskey rm`](#command-mc.admin.accesskey.rm) command removes an access key associated to a user on the deployment.

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

> [!CAUTION]
> **Warning**
>
> Applications can no longer authenticate using the access key after its removal.

**EXAMPLE**

The following command removes the specified access key:

```shell
mc admin accesskey rm myminio myuserserviceaccount
```

**SYNTAX**

The command has the following syntax:

```shell
mc [GLOBALFLAGS] admin accesskey rm                \
                                 ALIAS             \
                                 ACCESSKEYTOREMOVE
```

- 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.admin.accesskey.rm.ALIAS}

*mc-cmd*

*Required*

The [`alias`](/reference/minio-mc/mc-alias/#command-mc.alias) of the MinIO deployment.

##### `ACCESSKEYTOREMOVE` {#mc.admin.accesskey.rm.ACCESSKEYTOREMOVE}

*mc-cmd*

*Required*

The access key to remove.

### 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).
