Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IFileSystemItemEditor.DeleteItem(FileSystemDeleteItemOptions) Method

Deletes a file system item (file or directory)

Namespace: DevExtreme.AspNet.Mvc.FileManagement

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
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