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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/commands/data-definition/drop-account",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> 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":"github-light","dark":"github-dark"}}
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":"github-light","dark":"github-dark"}}
DROP ACCOUNT dev
```
