FSpDelete
spec is a pointer to an FSSpec record specifying the file to be removed. Returns: an operating system Error Code. It will be one of: noErr (0) No error
bdNamErr (-37) Bad name
dirNFErr (-120) Directory not found or incomplete pathname
extFSErr (-58) External file system
fBsyErr (-47) File is busy, directory not empty, or working dir
open
fLckdErr (-45) File is locked
fnfErr (-43) File not found
ioErr (-36) I/O error
nsvErr (-35) No such volume
vLckdErr (-46) Volume is locked
wPrErr (-44) Diskette is write-protected
Notes: The FSpDelete function removes a closed file. It is the high-level, FSSpec version of the PBHDelete function.