1BSD/man6/rmtree.6

Compare this file to the similar file:
Show the results in this format:

.th RMTREE VI 8/23/77
.sh NAME
rmtree \- remove a subtree of the file system
.sh SYNOPSIS
.bd rmtree
[
.bd \-acfsv
]
directory ...
.sh DESCRIPTION
.it Rmtree
can be used to quicky remove subtrees of the file system.
As this is a potentially disastrous action,
.it rmtree
will ask for confirmation of each removal, unless the standard
input is not a teletype.
.s3
Flags interpreted by
.it rmtree
include:
.lp +7 6
.s3
\fB\-a\fP	Remove the final directory.
.s3
.lp +7 6
\fB\-c\fP	\fIChmod\fP encountered directories so as to be able
to remove files in them if they are not writeable.
.s3
.lp +7 6
\fB\-f\fP	Don't ask for confirmation.
.s3
.lp +7 6
\fB\-s\fP	Ask for confirmation.
.s3
.lp +7 6
\fB\-v\fP	Do not remove the directory itself, only its contents
and the contents of its contents, etc.
Also don't unlink quota files.
.i0
.s3
Options and arguments may be mixed in any order.
The default options are
.bd \-a
and
.bd \-s.
.sh "SEE ALSO"
find (I), rm (I), cptree (VI), lntree (VI)
.sh AUTHOR
Kurt Shoens
.sh BUGS
This program is almost too dangerous to exist.
It should be used with great caution.