How to remove a directory?

Hi All,

If I try to remove a directory but I get following error:
rmdir: 0653-611 Directory name.ft is not empty.

Yes, it isn't empty but should I access the directory and delete the files one after another?
Is there perhaps a way delete a directory even if contains files?
Or if I access the directory is there a way to delete the files all at once?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

deltree "c:\etc\etc"

replacing "c:\etc\etc" with the desired directory path.
one of the unjustified ways to do that is to delete it over the network from another pc , it works to me and it hasn't failed a time
ignore last post, thought you were working in DOS. Half asleep :)
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.


rm -R <dirname>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Please use

rm -Rf <dirname>

to remove dir and subdir, -f to avoid confirming removing read-only files / dirs
Hi, just wondered if you had managed to easily remove your directory tree.
attila01Author Commented:

Yes, I succeeded to delete the directory.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.