BSD 1 development
[unix-history] / man6 / rmtree.6
CommitLineData
e26ebf18
KS
1.th RMTREE VI 8/23/77
2.sh NAME
3rmtree \- remove a subtree of the file system
4.sh SYNOPSIS
5.bd rmtree
6[
7.bd \-acfsv
8]
9directory ...
10.sh DESCRIPTION
11.it Rmtree
12can be used to quicky remove subtrees of the file system.
13As this is a potentially disastrous action,
14.it rmtree
15will ask for confirmation of each removal, unless the standard
16input is not a teletype.
17.s3
18Flags interpreted by
19.it rmtree
20include:
21.lp +7 6
22.s3
23\fB\-a\fP Remove the final directory.
24.s3
25.lp +7 6
26\fB\-c\fP \fIChmod\fP encountered directories so as to be able
27to remove files in them if they are not writeable.
28.s3
29.lp +7 6
30\fB\-f\fP Don't ask for confirmation.
31.s3
32.lp +7 6
33\fB\-s\fP Ask for confirmation.
34.s3
35.lp +7 6
36\fB\-v\fP Do not remove the directory itself, only its contents
37and the contents of its contents, etc.
38Also don't unlink quota files.
39.i0
40.s3
41Options and arguments may be mixed in any order.
42The default options are
43.bd \-a
44and
45.bd \-s.
46.sh "SEE ALSO"
47find (I), rm (I), cptree (VI), lntree (VI)
48.sh AUTHOR
49Kurt Shoens
50.sh BUGS
51This program is almost too dangerous to exist.
52It should be used with great caution.