Report this

What is the reason for this report?

How do I uninstall Wordpress from my Ubuntu Server?

Posted on August 21, 2015

I installed the server and wp on it.But when i try to login it fails.

When i try to recover thorugh email it says not possible.It says

The e-mail could not be sent. Possible reason: your host may have disabled the mail() function.

So i want to completely remove my wp install how to do that?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I just went to destroy droplet and rebuilt it to the base settings.

Assuming you are using the WordPress one-click image you can remove wordpress by taking a couple quick steps:

1.) Remove your web files:

rm -Rf /var/www/html/*

2.) Remove your database. First grab the mysql root password (this is shown in the MOTD shown when you log in via ssh).

mysql -uroot -p

you will be prompted for the password and after entering it you’ll be at a mysql client prompt

DROP DATABASE wordpress;

then you can close the mysql client with

exit;

One thing I feel I should note. If you create a droplet without an ssh key, the password emailed to you is your SSH password for the root user only. It is not used for anything else. That password is temporary and you must log in via ssh once to change it and to complete the WordPress setup (this is to prevent a new WordPress droplet from being susceptible to hijacking before you set it up).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.