Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#amunits]

DOSDeleteFile

Delete a file or directory

Declaration

Source position: amigados.pas line 1604

function DOSDeleteFile(

  const name: PChar

):LongBool;

function DOSDeleteFile(

  const name: string

):Boolean;

Arguments

name

  

Name of file or directory to delete.

Function result

If failed IoErr() gives detailed error message.

Arguments

name

  

Name of file or directory to delete.

Description

This attempts to delete the file or directory specified by name. An error is returned if the deletion fails. Note that all the files within a directory must be deleted before the directory itself can be deleted.


Documentation generated on: 2021-07-30