Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 41h
 ◄Detail► ◄Example►                          ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   41h
 
  Title:       Delete File
 
  See also:    Delete Directory, @DelFile
 
  Description:
 
     Deletes a file from the specified or default disk and directory.
 
     Input                                Output
 
     AH = 41h                             If function successful
     DS:DX = segment:offset of ASCIIZ       Carry flag: clear
             path name
                                          If function unsuccessful
                                            Carry flag: set
                                            AX = Error code (02h, 03h,
                                                 or 05h)
                                                 See: ◄Error codes►
                                    -♦-