FDelete Function (ROM Call 0x3D7)

AMS 2.00 or higher files.h

unsigned short FDelete (const char *fileName);

Deletes a file.

FDelete deletes the file fileName. fileName is a normal zero-terminated C string (i.e. it musn't be tokenized).
Note: FDelete may invalidate any current HSyms.

FDelete may return one of the following values as described in the FileStatusEnum enum:
FS_OKFile deleted.
FS_BAD_NAMEBad filename.
FS_ERRORFile not deleted because it is locked, in use, a folder, in Flash, or it does not exist.


Uses: TokenizeName, DerefSym, HSymDel, VarRecall


See also: FCreate