Previous Page | Next Page

Functions and CALL Routines under OpenVMS

DELETE Function: OpenVMS



Deletes a file.
Category: General-Purpose OpenVMS
OpenVMS specifics: All aspects are host-specific

Syntax
Details
See Also

Syntax

DELETE('file-specification')

'file-specification'

is the name of the file to be deleted. It can be a character variable, a character literal enclosed in double quotation marks, or another character expression. The value for file-specification must be enclosed in single or double quotation marks.


Details

If the DELETE function executes successfully, the return value is 0. Otherwise, the return value is any of the OpenVMS error codes that indicate why it failed.

The following are two common error codes:

98962

File not found.

98970

Insufficient privilege or file protection violation.

The text of the error codes is retrieved using the GETMSG function.

See Also

Previous Page | Next Page | Top of Page