• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Home
  • Write for Us
  • Contact
  • Advertise
  • Cookie Policy
    • Privacy statement (CA)
    • Cookie policy (CA)
    • Privacy statement (UK)
    • Cookie policy (UK)
    • Privacy statement (US)
    • Do Not Sell My Personal Information
    • Privacy statement (EU)
    • Cookie policy (EU)
    • Disclaimer

TechWalls

Technology News | Gadget Reviews | Tutorials

  • Reviews
  • Tech News
  • Tech Guide
  • Gadget & Apps

How to Delete a WordPress Website on DigitalOcean

Updated on May 24, 2016 by Tuan Do

If you host your WordPress website on DigitalOcean, there might be a time you need to migrate to another server or just simply delete the whole website. Here is the guide.

1. Log into your server via SSH

2. Delete MySQL user and database

Connect to MySQL server

mysql -u mysql_username -p

Run the following commands to find database name, username and delete them

SHOW Databases;
DROP Database your_database_name;
SELECT User FROM mysql.user;
DROP USER [email protected];

3. Delete WordPress Folder

cd /var/www
ls
sudo rm -r WordPress_folder_name

Make sure to back up this folder if you migrate your website to another server.

Read also: 8 Simple Steps to Transfer Multiple WordPress Websites from Shared Hosting to Digital Ocean

4. Remove domain in Digital Ocean

Navigate to Networking -> Domains to delete your domain name

digitalocean-delete-domain

5. Delete the virtualhost configuration file

cd /etc/apache2/sites-available
ls
sudo rm your_virtualhost_file

All set. Your website is completely removed from your DigitalOcean account now.

Leave a comment below if you have any question following the process.

Disclosure: As an Amazon Associate, I earn from qualifying purchases. The commission help keep the rest of my content free, so thank you!

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

Phomemo PM-246 Pro Thermal Label Printer Review – Huge Savings for Online Sellers

59S Handheld UV light Sterilizer Wand (X5) Review

Why I Bought the 2nd Autonomous Kinn Chair with Mesh?

Autonomous AvoChair Ergonomic Office Chair Review – A Well-Built and Cute Looking Chair But …

Follow TechWalls

YoutubeFacebookTwitterInstagram

Recent Posts

  • Phomemo PM-246 Pro Thermal Label Printer Review – Huge Savings for Online Sellers
  • 59S Handheld UV light Sterilizer Wand (X5) Review
  • 360 S9 Robot Vacuum and Mop Review – More Affordable LiDAR Robot
  • How to Add Continuation Pages with Form 8938 in H&R Block (Reporting Multiple Foreign Accounts)

Copyright © 2021 · All Rights Reserved