DELETE

Syntax

DELETE filename.ext

Explanation

DELETE removes the file specified by its input from the disk. If the file is succesfully deleted, DELETE outputs TRUE; otherwise, it outputs FALSE.

To remove a file from a disk in the drive which is not selected, precede the file name with the drive specifier, backslash (\), and a colon.

Examples

? DELETE "KNIFE.LGO

Result: TRUE

? MEMBER? "KNIFE.LGO DIR

Result: FALSE

? DISK

Result: C

? DELETE "B\:SWORD.LGO

Result: TRUE

? MEMBER? "SWORD.LGO (DIR B\:)

Result: FALSE

?

DELETE "????.LGO

erases all files with four-character names with the file extension .LGO and outputs TRUE if the files are successfully erased.

DELETE "\*.LGO

erases all files with names of any length with the file extension .LGO and outputs TRUE if they are successfully erased.