# DirectoryDelete()

Deletes directory for given path

```
DirectoryDelete( path=string, recurse=boolean );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| path | string | Yes | Absolute path of the directory to be deleted |  |
| recurse | boolean | No | Delete content of the directory. Default is false. *Alias: recursive* |  |

# Examples

```cfml
directorydelete("DirectoryPath");
```







# Categories

[File handling](../../categories/files.md)

# See Also

[DirectoryCopy()](directorycopy.md), [DirectoryCreate()](directorycreate.md), [DirectoryExists()](directoryexists.md), [DirectoryList()](directorylist.md), [DirectoryRename()](directoryrename.md), [<cfdirectory>](../tags/directory.md)