Deletes files or directories and, if indicated, any subdirectories matching the specified search condition on the filesToDelete list.

      Overload List

      Delete(IEnumerable, Boolean, Boolean, SearchCondition)Deletes files or directories and, if indicated, any subdirectories matching the specified search condition on the filesToDelete list.Delete(String, Boolean, Boolean, SearchCondition)Deletes files and directories matching the specified search condition in the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.Delete(String, Boolean, Boolean)Deletes files and directories in the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.Delete(String, Boolean, SearchCondition)Deletes files and directories matching the specified search condition in the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.Delete(String, Boolean)Deletes files and directories in the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.Delete(String)Deletes the specified file or content of the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.Delete(String, Boolean, IEnumerable, Boolean, Boolean, Boolean, SearchCondition)Deletes files matching the specified search condition in the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.Delete(String, Boolean, IEnumerable, Boolean, MultiFileOperationOptions)Deletes files or directories in the specified directory. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.
      Top

      See Also