UWF_Volume.CommitFileDeletion

Deletes the specified file and commits the deletion to the physical volume.

Syntax

UInt32 CommitFileDeletion(
    string FileName
);

Parameters

FileName [in] A string that contains the path of the file to delete, but does not include the drive letter or volume name. For example: “\users\test.dat”.

Return Value

Returns an HRESULT value that indicates WMI status or a WMI error constant.

Remarks

The FileName must contain the name of a file that exists on the physical volume. The CommitFileDeletion method cannot delete a file that does not exist.

You must use an administrator account to call this method.

Requirements

Windows Edition Supported
Windows 10 Home No
Windows 10 Pro No
Windows 10 Enterprise Yes
Windows 10 Education Yes

UWF_Volume

Unified Write Filter