MPE/iX Commands Reference Manual (32650-90877)
Chapter 10 391
Command List VIII
Commands PASCAL thru PURGEUSER
DIRECTORY
dir_name
TO BE PURGED? (YES/NO)_
Valid responses are YES, Y, NO, and N (case insensitive). If a TREE purge is requested, the
prompt is:
PURGE ALL FILES BELOW AND INCLUDING
dir_name
? (ALL/NO)_
Valid responses are ALL, NO, and N (case insensitive).
NOTE
If
dir_name
is long, the prompt may wrap around. If
dir_name
is an MPE
name, it is fully qualified in the prompt message. If the YES option is selected,
then the purge is automatically confirmed without a prompt.
The SHOW option displays the name of each purged file and directory on $STDLIST. For
example:
PURGEDIR ./mydir ;TREE ;SHOW
./mydir/abc
./mydir/dir1/dir2/file1
./mydir/dir1/dir2/file2
./mydir/dir1/dir2
./mydir/dir1/f1
./mydir/dir1/f2
./mydir/dir1
./mydir/file1
./mydir
The SHOWERRORS option displays any error that prevents an object from being deleted on
$STDLIST after the object name is displayed. Object names are only displayed if an error
occurs.
Examples
The following examples purge dir1, which is empty.
PURGEDIR /MYACCT/MYGRP/dir1
PURGEDIR /MYACCT/MYGRP/dir1;NOTREE
PURGEDIR /MYACCT/MYGRP/dir1/;NOTREE
NOTREE option overrides directory name ending in a "/". (CIWARN 9041)
The following examples purge dir1 and all objects below dir1.
PURGEDIR /MYACCT/MYGRP/dir1/
PURGEDIR /MYACCT/MYGRP/dir1 ;TREE
The next example shows the command to purge MYDIR.
PURGEDIR mydir
The next example shows the command to purge MYDIR and all objects below.
PURGEDIR mydir;TREE
The next example illustrates the SHOW and TREE options.
PURGEDIR dir;SHOW;TREE
./DIR/A