> ## 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-role",
  "feedback": "Description of the issue"
}
```

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

</AgentInstructions>

> Reference and syntax for the DROP ROLE command.

# DROP ROLE

Deletes a role. Note that role cannot be dropped if there are permissions granted to the role, in this case
error message will be displayed and you need manually to drop permissions granted to the role and retry.

For more information, see [Role-based access control](/guides/security/rbac).

<Warning>
  A role cannot be dropped if there are permissions granted to the role. In this case, an error message will be displayed, and you need to manually drop the permissions granted to the role and retry.
</Warning>

## Syntax

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

## Parameters

| Parameter     | Description           |
| :------------ | :-------------------- |
| `<role_name>` | The name of the role. |

## Example

The following command will delete the role "user\_role"

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP ROLE user_role;
```

### Example 2

The following command will delete the role "my\_role\_2"

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP ROLE IF EXISTS my_role_2
```

If "my\_role\_2" does not exist, no error message is thrown.
