Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Apr 2008 11:43:23 +0200
From:      Lothar Braun <lothar@lobraun.de>
To:        Ruel Luchavez <ruel.freebsd@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Delete a folder although its not empty
Message-ID:  <47FB3E3B.6010408@lobraun.de>
In-Reply-To: <ee9dc2b40804080235k64606f0fi52f42550f2d49371@mail.gmail.com>
References:  <ee9dc2b40804080235k64606f0fi52f42550f2d49371@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ruel Luchavez wrote:
| Hello...
|
| I'm tired of deleting a directory or folder in a server using "rm" and
| "rmdir" but before deleting a directory using "rmdir" the folder must be
| empty..what should i do or what command should be use in Free BSD to
delete
| a folder in a directory even if its not empty without affecting the
| folder in the same directory?

If you want to delete a non-empty folder, you have to use the recursive
option (see rm(1))

rm -r folder-name

should do the job.

Regards,
~  Lothar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf7PjsACgkQOlpYSeF9JmYkOwCg0DagRl9s0L656fBnlNiDt+Np
/GkAn1UAIgLLZr+wdu5dW7qxdjJ2nOUv
=m15J
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47FB3E3B.6010408>