TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-129
PURGE Command
PURGE Command 
Use the PURGE command to delete one or more disk files.
option
qualifies the purge operation. Specify option as one of these:
CONFIRM
specifies that TACL is to prompt for confirmation for each file, specified by 
name or by matching a template, before purging the file.
NOCONFIRM
specifies that TACL is to purge the file without requesting confirmation. This 
option is provided primarily for programmatic applications that do not need 
confirmation of the purge operation.
file-name-template
is a file name or partial file name with wild-card characters. For more information 
about file-name templates, see Section 2, Lexical Elements.
Considerations
These considerations apply to the PURGE command:
•
When you use the PURGE command to delete a disk file, the entry for the file is 
deleted from the file directory in the volume where it resides, and any space 
previously allocated to that file is made available to other files. Data in the file is not 
physically deleted from the disk unless you specified the FUP CLEARONPURGE 
option when you created the file. Files that are physically deleted are overwritten 
with zeros. For information about the CLEARONPURGE option, see the File Utility 
Program (FUP) Reference Manual.
•
You can purge a file only if it is not currently open; in addition, you must have 
purge access to the file. See the description of the DEFAULT Program
 on 
page 8-53 for information about file-access restrictions.
•
If you try to use the PURGE command to delete a file that is being audited by the 
TMF subsystem the attempt fails if there are pending transaction-mode records or 
file locks; file-system error 12 (file in use) is returned. The purge is successful, 
however, if the audited file is inactive. 
These considerations apply to the use of the CONFIRM and NOCONFIRM options:
•
If you specify a file name with no wild-card characters and do not include 
CONFIRM or NOCONFIRM, TACL does not display a confirm prompt.
PURGE [ / option / ]
 file-name-template [ , file-name-template ... ]










