How to delete a select group of directories on a Solaris 2.5 server?

Whats the command to delete a select group of directories?  I want to delete the parent and all the subdirectories under it.  We're getting rid of an old Solaris server and I need to remove the dirs and files that have data in them.  I want the o/s and standard file systems root, var, etc, left intact.
Who is Participating?
TintinConnect With a Mentor Commented:
As root, you just do

rm -r /path/to/dir
What Tintin said will work.

But, if you are surplussing this machine, or otherwise concerned that the data may be accessed by persons outside of your organization, you may want to do a better job of wiping out the disks.

How you do that depends on the actual configuration of your system.

If the data is on a disk separate from the system disk, then you can do a newfs on the disk which will make the data less readable.

Good Luck!
mobotAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.