Deletes a file or a directory given a path.
// creates a menu entry to remove a file or a directory. @MenuItem ("Example/Remove Something") static function RemoveAFile () { //removes the file FileUtil.DeleteFileOrDirectory("yourpath
tothe
folderor
file"); }