Skip to main content

PhysicalFileSystemProvider.DeleteItem(FileSystemDeleteItemOptions) Method

Deletes a file system item (file or directory)

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public virtual void DeleteItem(
    FileSystemDeleteItemOptions options
)

Parameters

Name Type Description
options FileSystemDeleteItemOptions

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);
    //...
}
See Also