file.deleteFolder
| Syntax |
file.deleteFolder (path)
|
| Params |
path is a legal path name to the folder you wish to delete.
|
| Action |
Deletes the folder and all its files and sub-folders without confirmation.
|
| Returns |
True if it was able to delete the folder, false otherwise.
|
| Examples |
file.deleteFolder ("C:\\Program Files\\Frontier\\Preferences\\mySuite\\") » true
file.deleteFolder ("System:Testing:")
|
| Errors |
Attempting to delete a non-existent folder will result in an error. If any file or folder contained in the designated folder cannot be deleted (for example, because it is locked), an error message will be generated.
|
| Notes |
This verb provides a separate way from file.delete for deleting a folder, ensuring that scripts do not delete folders with contents by accident. You may use file.delete to delete a folder if you are sure that the folder is empty.
|
| See Also |
file.delete
|