Want more timely Centmin Mod News Updates?
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

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    11:08 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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:08 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    11:08 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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:08 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    11:08 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

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:08 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    11:08 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
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:08 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    K good to hear :)
     
  9. adamus007p

    adamus007p Member

    378
    19
    18
    Feb 8, 2019
    Ratings:
    +38
    Local Time:
    5:08 AM
    @eva2000 how to delete a database?

    I had to delete a fresh install and I will install it again cause i was not able to open a blog or wp-admin.

    Too many redirects.
     
  10. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:08 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    use following command to delete databases in SSH
    Code (Text):
    mysqladmin drop DATABASENAME