136
|
1 <refentry id="deldir">
|
|
2 <refnamediv>
|
|
3 <refname>DELDIR</refname>
|
|
4 <refpurpose>Delete All Files In a Directory System</refpurpose>
|
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <cmdsynopsis>
|
|
9 <command>DELDIR</command>
|
|
10 <arg choice="plain">
|
|
11 &replstart;directory name&replend;
|
|
12 </arg>
|
|
13 </cmdsynopsis>
|
|
14 </refsynopsisdiv>
|
|
15
|
|
16 <refsect1><title>Description</title>
|
|
17 <para>
|
|
18 This command is a convenient alternative to manually deleting
|
|
19 directories and files they contain. It is only used when
|
|
20 <emphasis>all</emphasis> files in the directory system are to be deleted.
|
|
21 </para>
|
|
22 <para>
|
|
23 When DELDIR is run, it prints a prompt message like this:
|
|
24 </para>
|
|
25 <screen>
|
|
26 OS9: deldir OLDFILES
|
|
27 Deleting directory file.
|
|
28 List directory, delete directory, or quit ? (l/d/q)
|
|
29 </screen>
|
|
30 <para>
|
|
31 An "l" response will cause a "dir e" command to be run so you can
|
|
32 have an opportunity to see the files in the directory before they
|
|
33 are deleted.
|
|
34 </para>
|
|
35 <para>
|
|
36 A "d" response will initiate the process of deleting files.
|
|
37 </para>
|
|
38 <para>
|
|
39 A "q" response will abort the command before action is taken.
|
|
40 </para>
|
|
41 <para>
|
|
42 The directory to be deleted may include directory files, which
|
|
43 may themselves include directory files, etc. In this case, DELDIR
|
|
44 operates recursively (e.g., it calls itself) so all lower-level
|
|
45 directories are deleted as well. In this case the lower-level
|
|
46 directories are processed first.
|
|
47 </para>
|
|
48 <para>
|
|
49 You must have correct access permission to delete all files and
|
|
50 directories encountered. If not, DELDIR will abort upon
|
|
51 encountering the first file for which you do not have write
|
|
52 permission.
|
|
53 </para>
|
|
54 <para>
|
|
55 The DELDIR command automatically calls the DIR and ATTR
|
|
56 commands, so they both must reside in the current execution
|
|
57 directory.
|
|
58 </para>
|
|
59 </refsect1>
|
|
60 </refentry>
|
|
61
|