OSDELETE

Deletes an OS file.

 

COMMAND SYNTAX

OSDELETE expression {ON ERROR Statements}

 

SYNTAX ELEMENTS

expression Specifies the full file path.  If the file resides in the JEDIFILEPATH then just the file name is required.
ON ERROR Statements Conditional jBC statements to execute if the OSDELETE statement fails with a fatal error because the file is not open, an I/O error occurs, or jBASE cannot find the file. If you do not specify the ON ERROR clause and a fatal error occurs, the program terminates.

 

NOTES

The jBC OSDELETE command deletes an NTFS or UNIX sequential file.  This command is intended for use on OS-type files and not jBASE hashed files.  This command should NEVER be used on Hashed files (see DELETE-FILE to remove Hashed files).

 

EXAMPLES

OSDELETE "C:\MyDirectory\MyFile"

 

RELATED COMMANDS

OSOPEN, OSCLOSE, OSBREAD, OSBWRITE, OSREAD, OSWRITE


jBC