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

<a id="sql-security-priv-mgmt-dir-revoke" />

[Permissions](/content/security/sec_concepts#security-concepts-permissions-kifs) on
[KiFS directories](/content/sql/kifs/create-directory#sql-kifs-create-dir)
that have been [granted](/content/sql/security/grant-directory-permission#sql-security-priv-mgmt-dir-grant)
directly to
[users](/content/security/sec_concepts#security-concepts-users) or
[roles](/content/security/sec_concepts#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.