tumblr tracker

Delete

Library Reference ›› Folder ››
Parent Previous Next

Folder.Delete


Namespace: Folder


Deletes a folder together with all files and subfolders.


retval = Folder.Delete(SourceFolderPath, [CancelOnFirstError])


Parameters:

- SourceFolderPath; string constant or variable containing the source folder path to delete

- [CancelOnFirstError]; optional (default false); if false, it will ignore any errors and continue with the next file or folder; boolean value


Returns:

true if operation succeeded or false otherwise; boolean value.


Example


If (Folder.Delete("C:\TEMP\WEBcopy", true))
{
   MessageBox.ShowInfo("Folder Deleted.");
}