DeleteFile(filePath) Last updated: 07. Sep 2023
API only function
Deletes a specified file.
Parameters
Name | Type | Description |
---|---|---|
filePath | string | Absolute path to the file 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.deleteFile("Folder1/File1"))
{
write("File deleted successful!");
}