deleteFolder(folderPath) Last updated: 29. Apr 2026

API only function

Deletes a specified folder.

See also: deleteFile folderExists

Parameters

Name Type Description
folderPath string Absolute path to the folder you want to delete.

Returns

Boolean, true if deleted otherwise false.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
if (docly.deleteFolder("Folder1"))
{
    write("Folder deleted successful!");
}