The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Delete Entire Web Site

Discussion in 'General Discussion' started by fisher63, Mar 11, 2010.

  1. fisher63

    fisher63 Registered

    Joined:
    Mar 11, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    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
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:


    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.
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Have you tried clearing your browser cache and opening the site again and/or open your site from another computer.

    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.
     
Loading...

Share This Page