Want to subscribe to topics you're interested in?
Become a Member

Wordpress How can I delete a Wordpress site?

Discussion in 'Blogs & CMS usage' started by rc112, Feb 8, 2018.

  1. rc112

    rc112 Member

    124
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    10:43 AM
    Hi I came back to use it again after dropping out for a while.

    I can not find related posts. I installed a wordpress site with option 22 and now I want to delete and reinstall it and I didnt see any option on centimin menu. Thank you so much for your help!
     
  2. eva2000

    eva2000 Administrator Staff Member

    33,695
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    12:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    Every centmin.sh menu option 22 run has an accompanying uninstall script at /root/tools/wp_uninstall_${vhostname}.sh where ${vhostname} = your domain name. You can run that to uninstall almost everything except mysql database which you have to manually remove yourself - extra precaution in case you accidentally run the worng uninstall script.
     
  3. rc112

    rc112 Member

    124
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    10:43 AM
    Hi @eva2000 Thanks so much for your reply. I found the script and ran it under root/root/tools/ but it respond "bash: wp_uninstall_${vhostname}: command not found"
    Please Kindly help. Thanks.
     
  4. eva2000

    eva2000 Administrator Staff Member

    33,695
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    12:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    how did you run it ? you should run as root user in SSH session
    Code (Text):
    /root/tools/wp_uninstall_yourdomain.com.sh
    
     
  5. rc112

    rc112 Member

    124
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    10:43 AM
    Yes, did what I was told. Here is the output. Thank you for your prompt reply.

    [00:01][root@test1 tools]# wp_uninstall_demo.wooshop.com.tw
    bash: wp_uninstall_demo.wooshop.com.tw: command not found
     
  6. eva2000

    eva2000 Administrator Staff Member

    33,695
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    12:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    is filename right ? even so you have to run full path to file if you are in directory you run with ./ in front

    so either as
    Code (Text):
    /root/tool/swp_uninstall_demo.wooshop.com.tw.sh
    

    or
    Code (Text):
    cd /root/tools
    ./wp_uninstall_demo.wooshop.com.tw.sh
    


    so check if file is wp_uninstall_demo.wooshop.com.tw or wp_uninstall_demo.wooshop.com.tw.sh with .sh on end
     
  7. rc112

    rc112 Member

    124
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    10:43 AM
    Hi Your 2nd advice works and better it prompted the database name so I can remove it too with the command mysqladmin drop DATABASENAME

    Thank you @eva2000
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    33,695
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    12:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    K good to hear :)
     
    • Like Like x 1
..