To delete program lines or line ranges.
DELETE [line number1][-line number2] DELETE line number1-
line number1 is the first line to be deleted.
line number2 is the last line to be deleted.
GW-BASIC always returns to command level after a DELETE command is executed. Unless at least one line number is given, an "Illegal Function Call" error occurs.
The period (.) may be used to substitute for either line number to indicate the current line.
Deletes line 40.
Deletes lines 40 through 100, inclusively.
Deletes all lines up to and including line 40.
Deletes all lines from line 40 to the end of the program.