Docs » Autodocs » dos.library » DeleteFile
DeleteFile -- Delete a file or directory
success = DeleteFile( name ) D0 D1 BOOL DeleteFile(STRPTR)
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.
name - pointer to a null-terminated string
success - boolean
|