> ## 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 Directory Permission

[Permissions](https://docs.kinetica.com/content/security/sec_concepts.md#security-concepts-permissions-kifs) on
[KiFS directories](https://docs.kinetica.com/content/sql/kifs/create-directory.md#sql-kifs-create-dir)
that have been [granted](https://docs.kinetica.com/content/sql/security/grant-directory-permission.md#sql-security-priv-mgmt-dir-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 Directory Permission Syntax" theme={null}
REVOKE <READ | WRITE> [PRIVILEGES]
ON <ALL DIRECTORIES | DIRECTORY < <directory name> | * >>
FROM <user name | role name>
```

```sql title="REVOKE Create Directory Permission Syntax" theme={null}
REVOKE CREATE DIRECTORY [PRIVILEGES]
FROM <user name | role name>
```

## Examples

To revoke read access on a *directory* named **kdata** from the
**kuser** *user*:

```sql REVOKE Directory Read Permission Example theme={null}
REVOKE READ ON DIRECTORY 'kdata' FROM kuser
```

To revoke write access on a *directory* named **kdata** from the **kuser** *user*:

```sql REVOKE Directory Write Permission Example theme={null}
REVOKE WRITE ON DIRECTORY 'kdata' FROM kuser
```


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