FileService.DeleteAsync method
Delete a file from the FileSystem
public Task DeleteAsync(string fileName, string fileType, bool throwOnException = true,
bool throwOnNotFound = false)
parameter | description |
---|---|
fileName | Name of the file |
fileType | Type of the file |
throwOnException | Indicates whether an Exception should be thrown upon errors. Default:true |
throwOnNotFound | Indicates whether an Exeption should be thrown if the file is not found.Default:false |
Return Value
IFileMetaData
See Also
- class FileService
- namespace DotNetOpen.FileService