> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# REVOKE SQL-GPT Context Permission

Permissions on [SQL-GPT contexts](https://docs.kinetica.com/content/sql/sqlgpt/create-context.md#sql-gpt-create-context)
that have been [granted](https://docs.kinetica.com/content/sql/security/grant-sql-gpt-context-permission.md#sql-security-priv-mgmt-gpt-grant)
directly to
[users](https://docs.kinetica.com/content/security/sec_concepts.md#security-concepts-users) or
[roles](https://docs.kinetica.com/content/security/sec_concepts.md#security-concepts-roles) can be revoked.

```sql title="REVOKE SQL-GPT Context Permission Syntax" theme={null}
REVOKE <READ | ADMIN> [PRIVILEGES]
ON <ALL CONTEXTS [IN [SCHEMA] <schema reference>] | CONTEXT <context reference>>
FROM <user name | role name>
```

```sql title="REVOKE Create SQL-GPT Context Permission Syntax" theme={null}
REVOKE CREATE [PRIVILEGES] ON CONTEXTS
[IN [SCHEMA] <schema reference>]
FROM <user name | role name>
```

## Examples

To revoke *read* access on the *SQL-GPT context* named
**example.atc\_ctx** from the **ctxuser** *user*:

```sql REVOKE SQL-GPT Context Permission Example theme={null}
REVOKE READ ON CONTEXT example.atc_ctx FROM ctxuser
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.