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

# DROP ACCOUNT

Deletes an account.

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

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
DROP ACCOUNT [ IF EXISTS ] <account_name> [ RESTRICT | CASCADE ];
```

## Parameters

| Parameter             | Description                                                                                                                                                                                                                                                                                                                                                         |
| :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `<account_name>`      | The name of the account to delete.                                                                                                                                                                                                                                                                                                                                  |
| `RESTRICT \| CASCADE` | An optional parameter to specify deletion mode.<br />RESTRICT mode prevents dropping the account if there is any sub-object contained in the account.<br />By default, if the account contains no objects, it will just be dropped.<br />CASCADE mode automatically drops the account and all the sub-objects it contains (databases, engines, users, roles, etc.). |

<Note>
  All engines in your accounts must be in a stopped state before running the `DROP ACCOUNT … CASCADE` statement.
</Note>

## Example

The following command will delete the "dev" account.

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
DROP ACCOUNT dev
```
