> ## 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 LOGIN command.

# DROP LOGIN

Deletes a login.

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

## Syntax

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

<Note>
  If the login is linked to a user, it can not be dropped. In order to drop a login linked to a user, the link must be reset `alter user foo set login="new-login@acme.com"|DEFAULT` or the user dropped.
</Note>

## Parameters

| Parameter      | Description                      |
| :------------- | :------------------------------- |
| `<login_name>` | The name of the login to delete. |

## Example

The following command will delete the "[alexs@acme.com](mailto:alexs@acme.com)" login.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP LOGIN "alexs@acme.com";
```
