[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - "UNLINK" - DELETE FILE
        AH = 41h
        DS:DX -> ASCIZ filename (no wildcards, but see below)
        CL = attribute mask for deletion (server call only, see below)
Return: CF clear if successful
            AX destroyed (DOS 3.3) AL seems to be drive of deleted file
        CF set on error
            AX = error code (02h,03h,05h) (see AH=59h)
Notes:  (DOS 3.1+) wildcards are allowed if invoked via AX=5D00h, in which case
          the filespec must be canonical (as returned by AH=60h), and only
          files matching the attribute mask in CL are deleted
        DOS does not erase the file's data; it merely becomes inaccessible
          because the FAT chain for the file is cleared
        deleting a file which is currently open may lead to filesystem
          corruption.  Unless SHARE is loaded, DOS does not close the handles
          referencing the deleted file, thus allowing writes to a nonexistant
          file.
        under DRDOS and DR Multiuser DOS, this function will fail if the file
          is currently open
        under the FlashTek X-32 DOS extender, the pointer is in DS:EDX
SeeAlso: AX=4301h,AX=5D00h,AH=60h,AX=F244h,INT 2F/AX=1113h

See Also: 2113
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson