Skip to content

deleteAllFileFromDirectory JavaScript

Deletes all files in the specified directory path. However, the directory is preserved.

Parameters

  • directoryPath::string: Directory path

Returns

Promise::void

Examples

javascript
await deleteAllFileFromDirectory('/home/user/Downloads');

Released under the MIT License