---
url: /process-functions/datasource-directorydelete.md
description: >-
  Deletes the given directory in the MODLR file manager system in the provided
  path.
---

# datasource.directoryDelete&#x20;

Deletes the given directory in the MODLR file manager system in the provided path. Returns a boolean of the success of the directory deletion.

```js
datasource.directoryDelete(directoryName);
```

#### Parameters

* `directoryName` - The name and file path of the directory and where it is to be deleted from.

#### Examples

```js
let res = datasource.directoryDelete("Export");
```

```js
let res = datasource.directoryDelete("Upload/Images");
```
