Syntax folder.Delete(boolean) folder.Delete() The Delete() method deletes a specified folder.The optional boolean parameter cause the method to delete all read-only files and folders in the folder if set to true.