DELETE-FILE


The jBASE DELETE-FILE command allows the user to delete complete file sets, i.e. Dictionary file, default data section and multiple data sections, or individual data sections.

 

COMMAND SYNTAX

DELETE-FILE {DICT|DATA} filename{,section}

 

SYNTAX ELEMENTS

filename is the name the file to be deleted. The file type must be one of the supported jBASE file types. If the file type supports separate data and dictionary files, the DICT or DATA keywords may be used to delete either the data file or the dictionary file.

section is the name of the data section to be deleted.

 

NOTES

The command will detect inconsistencies in the use of the command and issue suitable error messages.

Warning: Beware of creating a file and then immediately deleting it using the DELETE-FILE command. The DELETE-FILE command will respect the JEDIFILEPATH variable and if it finds a file of the same name in a directory earlier in the path than the current working directory it will delete that file. For this reason it is best to define the JEDIFILEPATH variable as "." (the current working directory).

 

EXAMPLES

DELETE-FILE File1,Section
Deletes the multiple data section file, Section1 from File1.

DELETE-FILE DATA File1
Deletes the default data file, File1.

DELETE-FILE DICT File1
Deletes the dictionary file, File1]D.


Files