Removing A Directory And Its Files
removing a directory and its files
removing, a, directory, and, its, files
Removing A Directory And Its Files
Post Description: removing a directory and its files
POST# 632
Posted On: Fri Feb 29, 2008 12:01 pm
pinguin
Topic: Removing A Directory And Its Files
Hello Webune,

I want to remove a folder from my server I am leasing through your dedicated server service. What command should I use?

this is an update to my post here, i found this post helpful:

http://www.wallpaperama.com/disp-post23.html


Sun Jul 30, 2006 12:13 pm
1
pinguin
Reply #1429
Folders are for windows-

Linux folders are called "Directories" -

To remove a directory, send this command on you SSH session:


     Code:
rmdir /path/to/directory/name

/path/to/directory/name is the full path to where the directory is at that you want to delete.

Example: I wan to delete the forums directory and the forums directory is at /var/www/html/forums i would have to do this:

move to the html directory

     Code:
cd /var/www/html


Then delete the forums directory

     Code:
rmdir forums


DONE
Sun Jul 30, 2006 12:18 pm
2
pinguin
Reply #1430
I tried what you told me but i get this error when i followed your instructions:

rmdir: `html': Directory not empty
Sun Jul 30, 2006 12:20 pm
3
pinguin
Reply #1431
If you are getting this eror, follow the instruction in this post and you should be able to delete it:


http://www.webune.com/forums/fix-error-rmdir-html-directory-not-empty-t80.html

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload