To delete a file from a disk.
filename can be a program file, sequential file, or random-access data file.
KILL is used for all types of disk files, including program, random data, and sequential data files.
You must specify the filename's extension when using the KILL command. Remember that files saved in GW-BASIC are given the default extension .BAS.
If a KILL command is given for a file that is currently open, a "File already open" error occurs.
The following command deletes the GW-BASIC file DATA1, and makes the space available for reallocation to another file:
200 KILL "DATA1.BAS"
The following command deletes the GW-BASIC file RAINING from the subdirectory dogs: