Specifications

12 Version 2.0
EFI_SHELL_PROTOCOL.DeleteFile()
Summary
Deletes the file specified by the file handle.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_SHELL_DELETE_FILE)(
IN EFI_FILE_HANDLE FileHandle
);
Parameters
FileHandle
The file handle to delete.
Description
This function closes and deletes a file. In all cases, the file handle is closed. If the file
cannot be deleted, the warning code EFI_WARN_DELETE_FAILURE is returned, but the
handle is still closed.
Status Codes Returned
EFI_SUCCESS The file was closed and deleted, and the handle was closed.
EFI_WARN_DELETE_FAILURE The handle was closed but the file was not deleted.