Function 41h (65)        Delete File (UNLINK)

Delete the named file.

On entry:      AH         41h
DS:DX      Pointer to filespec (ASCIIZ string)

Returns:       AX         Error code, if CF is set

Error codes:   2          File not found
3          Path not found
5          Access denied

Call Function 59h for extended error code information
(DOS 3.0 and above).

Network:       Requires Create access rights

                                                                          

This function removes the directory entry for the file whose pathname
is given in the ASCIIZ string pointed to by DS:DX. Wildcard characters
may not be used in the pathname specification. (Note that the
corresponding FCB function, Function 13h, does permit wildcard
characters.)

Notes:         To delete a read-only file, first remove the read-
only attribute with Function 43h.

See also: 13h
See also: 43h
See also: 59h

41h (65) Delete File (UNLINK)