PhysicalFileSystemProvider.DeleteItem(FileSystemDeleteItemOptions) Method
In This Article
Deletes a file system item (file or directory)
Namespace: DevExtreme.AspNet.Mvc.FileManagement
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public virtual void DeleteItem(
FileSystemDeleteItemOptions options
)
#Parameters
Name | Type | Description |
---|---|---|
options | File |
Options related to the operation. |
#Remarks
The following example illustrates how to overwrite the DeleteItem method.
Refer to the Binding to Entity Framework ORM online demo to get the whole example code.
IFileSystemItemEditor interface:
public void DeleteItem(FileSystemDeleteItemOptions options) {
var item = options.Item;
var fileItem = GetFileItem(item);
FileManagementDbContext.FileItems.Remove(fileItem);
//...
}
#Implements
See Also