Difference between revisions of "ERASE"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=ERASE=
 
 
 
==Class==
 
Disk and File Utilities
 
 
 
 
==Purpose==
 
==Purpose==
 
Delete a file or files
 
Delete a file or files
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[ALIAS]], [[DELETE]], [[RUN]], [[SET SAFETY]]
+
[[ALIAS]], [[DELETE]], [[RUN]], [[SET PATH]], [[SET SAFETY]]
  
  
Line 25: Line 18:
 
<code lang="recital">
 
<code lang="recital">
 
if file("backup.old")
 
if file("backup.old")
  erase backup.old
+
    erase backup.old
 
endif
 
endif
 
</code>
 
</code>
Line 31: Line 24:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Disk and File Utilities]]
 +
[[Category:Disk and File Utilities Commands]]

Latest revision as of 17:16, 10 November 2009

Purpose

Delete a file or files


Syntax

ERASE <filename> | (<expC>) | <file list>


See Also

ALIAS, DELETE, RUN, SET PATH, SET SAFETY


Description

The ERASE command deletes the specified file or comma-separated file list. If no directory specification is present in the filename, then the file is deleted from the current directory. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. When deleting a file, ERASE does not follow the directory search path specified with the SET PATH command. On OpenVMS, all versions of the file will be deleted.


Example

if file("backup.old")
    erase backup.old
endif


Products

Recital Server, Recital