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

# DROP SERVICE ACCOUNT

Deletes a service account.

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

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
DROP SERVICE ACCOUNT <service_account_name>;
```

<Note>
  If the service account is linked to a user, it can not be dropped. In order to drop a service account linked to a user, the link must be reset `alter user foo set service_account=new_service_account|DEFAULT` or the user dropped.
</Note>

## Parameters

| Parameter                | Description                                |
| :----------------------- | :----------------------------------------- |
| `<service_account_name>` | The name of the service account to delete. |

## Example

The following command will delete the "sa1" service account.

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