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

# ALTER DIRECTORY

Alters the configuration of an existing
[KiFS directory](https://docs.kinetica.com/content/tools/kifs_api.md#kifs-directory).

The following facet of a *directory* can be altered:

* [Data Limit](https://docs.kinetica.com/content/sql/kifs/alter-directory.md#sql-kifs-alter-dir-limit)

## Set Data Limit

A *directory* can have its data limit modified.

```sql title="Set Directory Data Limit Syntax" theme={null}
ALTER DIRECTORY '<directory name>'
SET data_limit = <data limit value>
```

### Parameters

> [accordion] \<directory name>
>
> Name of the *directory* to alter

> [accordion] \<data limit value>
>
> Total capacity the given *directory* should not exceed, in bytes; use `-1` for no limit

### Examples

To set the maximum capacity of a *directory*, `fs_limited`, to
10,000,000 bytes:

```sql ALTER DIRECTORY SET Data Limit Example theme={null}
ALTER DIRECTORY 'fs_limited'
SET data_limit = 10000000
```


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