PDA

View Full Version : Unable to delete files



ir4dl
11-06-2009, 02:29 AM
Hi.

i have a problem with deleting file . i have a folder named modules ( one of Nuke Cms Folder ) and i want to delete it , when i checkbox and click on delete then Click ok , it show me this Error :

Unable to delete files
Unable to delete directory /domains/centerdl.com/public_html/modules: The directory /domains/centerdl.com/public_html/modules is not empty

How can i delete it ? please help me .

czotos
11-06-2009, 04:44 AM
First, try deleting all the files within the "modules" directory before attempting to delete the "modules" directory.

UNIX-based systems will not allow you to delete a directory if it contains files or folders.

You can force it to delete by executing this command as root:


rm -rf /domains/centerdl.com/public_html/modules/

ir4dl
11-06-2009, 04:49 AM
First, try deleting all the files within the "modules" directory before attempting to delete the "modules" directory.

UNIX-based systems will not allow you to delete a directory if it contains files or folders.

You can force it to delete by executing this command as root:
thanks . but i can't delete ke sub folder an files in " Modules " folder ,too .

and about this command , can you tell me how can i use it ? because it my first time i use the DirectAdmin .

Thank you very much .

nobaloney
11-06-2009, 10:46 AM
Presumably you're a site-owner, and not a register owner of the DirectAdmin software.

If that's the case you should be asking your hosting company for support.

Jeff

ir4dl
11-06-2009, 11:55 AM
Presumably you're a site-owner, and not a register owner of the DirectAdmin software.

If that's the case you should be asking your hosting company for support.

Jeff
yes , i'm a site-owner .

I'll tell my support hosting to delete this folder .

thank you very much

SeLLeRoNe
11-10-2009, 06:39 AM
prolly is a sub-folder created by apache with a cms, just root can delete it, happend many times to my customers too

Regards

est7
12-29-2009, 02:54 AM
Unable to delete directory /domains/priit74.pri.ee/public_html/consumer: The directory /domains/priit74.pri.ee/public_html/consumer is not empty

Help me , it doesnt work for me : rm -rf /domains/priit74.pri.ee/public_html/consumer ???

SeLLeRoNe
12-29-2009, 03:01 AM
are you trying to delete with rm -rf in with root privileges?

est7
12-29-2009, 03:05 AM
are you trying to delete with rm -rf in with root privileges?

how i make it?

floyd
12-29-2009, 04:37 AM
You have to login as root.

SeLLeRoNe
12-29-2009, 04:56 AM
or loging directly as root, or, once you already logged as user you can use "su" and then insert root password when asked.

thanhtamntp
12-30-2009, 06:43 PM
you login directadmin via user-level ?
if you upload/create folder via php-scripts, you can change owership.

est7
12-31-2009, 03:29 AM
you login directadmin via user-level ?
if you upload/create folder via php-scripts, you can change owership.

i cant owned it : An error occured while resetting the file ownership
You must enter a valid path. eg: /public_html

/home/np18393/domains/priit74.pri.ee/public_html/public/cid{CID} is not a valid path

nobaloney
01-01-2010, 11:44 AM
If you own the server you need to log in through the shell, as root, or you need to log in as an unprivileged user and su to root. And you need to either use the full path of the file you're trying to change, or you need to first cd to the directory holding the file you're changing.

If you don't own the server, then you need to discuss the issue with the server administrators, generally your hosting company.

If you do own the server but don't understand the posts offered here to help you then don't do anything; you'll probably do damage to your server. Instead hire someone to do it for you.

Jeff