deleteFolder
codebolt.fs.deleteFolder(foldername: string, folderpath: string): Promise<DeleteFolderResponse>
Deletes a folder at the specified path.
Parameters
Name | Type | Description |
---|---|---|
foldername | string | The name of the folder to delete. |
folderpath | string | The path of the folder to delete. |
Returns:
Promise<DeleteFolderResponse>
A promise that resolves with the server response.Example
// Let's assume you want to delete a folder named "exampleFolder" in the /home/user/documents directory.
codebolt.fs.deleteFolder('exampleFolder', '/home/user/documents');