How do I uninstall Wordpress from my Ubuntu Server?

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?


Also, where are you attempting to login? On your wp-admin page, or via your terminal to your Droplet? I just did a test install of our 1-Click app of Wordpress, and was able to connect, finish the install of WordPress, and login.

Hi Lily,

How did you install WordPress? Did you use one of our 1-Click app installs? or did you follow a guide to install manually? Also, which Linux OS are you using?

If you are using the WordPress image (and have not manually installed it), I can confirm that logging it doesn’t work even when entering the ‘correct’ password. Digital Ocean should take a look at this!

Submit an 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


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