fisher63

Registered
Mar 11, 2010
1
0
51
Sorry - very new - designed and uploaded website using a free web builder - but now I have bought WebPlus X4 and redesigned site. WPX4 has built in web publisher and I want to use that. Currently the files for the site are in CPanel from original upload - thought I went into File Manager and deleted files associated with site but when I checked on the site it is still there - all pages intact. How do I delete the website? Want to delete all the old files associated with outdated site and upload new files completely so that there are no conflicts with file names etc
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
If you have an access to the server then you can remove all the files and folders from the public_html folder by login through SSH. You will have to use below mentioned command to remove all the files and folders from your site:

rm -rf public_html


Using the above command it will remove all your files and folders and also public_html folder too. Once you remove it you will have to again create the public_html folder and assign the ownership as user:nobody.

To create the folder you will have to use below mentioned command:

mkdir public_html

To assign the ownership you will have to use below mentioned command:

chown user:nobody public_html
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
If you have an access to the server then you can remove all the files and folders from the public_html folder by login through SSH. You will have to use below mentioned command to remove all the files and folders from your site:

rm -rf public_html


Using the above command it will remove all your files and folders and also public_html folder too. Once you remove it you will have to again create the public_html folder and assign the ownership as user:nobody.

To create the folder you will have to use below mentioned command:

mkdir public_html

To assign the ownership you will have to use below mentioned command:

chown user:nobody public_html


A bit drastic isn't this? He'll lose any error pages, a CGI-BIN if he has it and whatever else he doesn't want to lose. This is bad advice.


@fisher63 if you are having trouble removing files from your account, please contact your host.
 

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
7
68
PK
cPanel Access Level
DataCenter Provider
Sorry - very new - designed and uploaded website using a free web builder - but now I have bought WebPlus X4 and redesigned site. WPX4 has built in web publisher and I want to use that. Currently the files for the site are in CPanel from original upload - thought I went into File Manager and deleted files associated with site but when I checked on the site it is still there - all pages intact. How do I delete the website? Want to delete all the old files associated with outdated site and upload new files completely so that there are no conflicts with file names etc
Have you tried clearing your browser cache and opening the site again and/or open your site from another computer.

A bit drastic isn't this? He'll lose any error pages, a CGI-BIN if he has it and whatever else he doesn't want to lose. This is bad advice.


@fisher63 if you are having trouble removing files from your account, please contact your host.
Yeah, I agree. This does not warrant removing the entire public_html folder. This person is confirming deletion of files from the file manager so this could be related to dns and/or caching etc or any third reason.