Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



 This statement is used to delete a record from a jBASE file. It takes the general form:

DELETE {variable,} expression {SETTING setvar} {ON ERROR statements}



  • If specified, variable should have been the subject of a previous OPEN statement. If variable is omitted then it assumes the default file variable.
  • The expression should evaluate to the name of a record stored in the open file.
  • If the SETTING clause is specified and the delete fails, it sets setvar to one of these file error values.


The statement will have no effect if the record name does not exist within the file. If the program against the file record was holding a lock, it will release the lock.

An example of use is as: 

0001     OPEN "test_rec" TO file_variable ELSE ABORT 201, "test_rec"
0002     DELETE file_variable , "001"

to delete the record "001" from the file test_rec .

Go back to jBASE BASIC.

Was this article helpful?