PURGEDIR

Operation

The PURGEDIR command purges the directory dir name. The dir name cannot name an MPE accoun t, an MPE group, a ￿le, or root (/). Dot (.) and dot-dot (..) can be speci￿ed but cannot be purged.

By default PURGEDIR deletes an MPE-named directory . This means that dir name must follow all MPE naming rules, unless it is pre￿xed with a dot

(.)or a slash (/). Since the MPE name syn tax de￿nes three lev els, fully (or partially) quali￿ed MPE-named directories can only be created under MPE groups. Unquali￿ed MPE-named directories are created relativ e to the CWD. Directories do not support loc kwords, ￿le equations, or system de￿ned ￿le names (for example, $NEWP ASS). If dir name begins with a dot (.) or a slash (/), then HFS naming rules are enforced.

The directory referenced b y dir name must be empty (except for dot (.) and dot-dot (..)) in order to be purged, unless a TREE purge is requested. A TREE purge may be requested as follows:

1.Specify the TREE option. (The dir name parameter does not con trol a multilevel purge in this case). This is the only c hoice available if dir name is an MPE name.

2.If dir name is an HFS name, ends in a slash (/), and the ;NOTREE option is not requested, then a TREE purge occurs.

The dir name parameter cannot reference root (/) because purging root is undesirable, and most likely is not what is in tended.

A ￿le or directory is not deleted if it is being accessed (opened); ho wever, all non-accessed objects under dir name are still purged. A ￿nal \IN USE" error indicates that dir name was not deleted because one or more c hildren objects could not be removed.

If CONFIRM is speci￿ed while y our session is in teractive, and it is legal for y ou to purge dir name , then you are prompted to con￿rm the purge of dir name. If a NOTREE purge is requested, the follo wing prompt is displa yed:

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:

2-188 MPE/iX Commands