Function 41h            Delete File (UNLINK)

Deletes a specified file.

Entry AH = 41h
DS:DX = Pointer to filespec (ASCIIZ string)

Return AX = Error code, if CF is set
| 02h File not found
| 03h Path not found
| 05h Access denied

──────────────────────────────────────────────────────────────────

This function removes the directory entry for the file whose
pathname is given in the zero-ended string pointed to by DS:DX.
Wildcard characters cannot be used in the pathname specification.

Note
Deleting an open file may result in corruption of the file system.

This function cannot be used to remove a directory, a volume
label, or a read-only file. A program can use function 4301h to
change the attributes of a read-only file so that the file can be
deleted.