Question

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?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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