> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference and syntax for the DROP USER command.

# DROP USER

Deletes a user.

For more information, see [Managing users](/guides/managing-your-organization/managing-users).

<Warning>
  A user cannot be dropped if it owns objects. In this case, an error message will be displayed, and you need to manually drop the objects, or transfer ownership.
</Warning>

for more information, see [Ownership](/guides/security/ownership).

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP USER [ IF EXISTS ] <user_name> ;
```

## Parameters

| Parameter     | Description                                                                                                                                      |
| :------------ | :----------------------------------------------------------------------------------------------------------------------------------------------- |
| `<user_name>` | The name of the user to delete. If the user name contains spaces or non-alphanumeric characters, it must be enclosed in single or double quotes. |

## Example

The following command will delete the "alex" user.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP USER alex;
```
