---
title: Delete a user
description: Delete a user from InfluxDB using the InfluxDB UI or the influx CLI.
url: https://docs.influxdata.com/influxdb/v2/admin/users/delete-user/
estimated_tokens: 657
product: InfluxDB OSS v2
version: v2
---

# Delete a user

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Use the InfluxDB user interface (UI) or the `influx` command line interface (CLI) to delete a user.

Deleting a user removes them completely from InfluxDB. To remove a user from an organization without deleting the user entirely, see [Remove a member from an organization](/influxdb/v2/admin/organizations/members/remove-member/).

## Delete a user from the InfluxDB UI

Users cannot be deleted from the InfluxDB UI.

## Delete a user using the influx CLI

Use the [`influx user delete` command](/influxdb/v2/reference/cli/influx/user/delete) to delete a user. Provide the following:

-   An [operator token](/influxdb/v2/admin/tokens/#operator-token) using your [`influx` CLI connection configuration](/influxdb/v2/reference/cli/influx/#provide-required-authentication-credentials), `INFLUX_TOKEN` environment variable, or the `--token, -t` flag.
-   The user ID *(provided in the output of `influx user list`)*

```sh
influx user delete --id USER_ID
```

Replace `USER_ID` with the ID of the user to delete.
