> ## 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/access-control/drop-service-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 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":"github-light","dark":"github-dark"}}
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":"github-light","dark":"github-dark"}}
DROP SERVICE ACCOUNT "sa1";
```
