TemporaryFileHelper.Delete method (1 of 2)
Deletes the file at the given path.
public static void Delete(string filePath, IFileSystem? fileSystem = null)
| parameter | description |
|---|---|
| filePath | The file to be deleted (can be null). |
| fileSystem | The file system to use, or null to use the physical file system. |
See Also
- interface IFileSystem
- class TemporaryFileHelper
TemporaryFileHelper.Delete method (2 of 2)
Deletes, tries to delete, or marks a file for deletion depending on the specified DeleteType.
public static void Delete(string filePath, DeleteType type, ITemporaryFileSystem? fileSystem = null)
| parameter | description |
|---|---|
| filePath | The file to be deleted (can be null). |
| type | The delete type. |
| fileSystem | The file system to use, or null to use the physical file system. |
See Also
- enum DeleteType
- interface ITemporaryFileSystem
- class TemporaryFileHelper