Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Delete a MySQL Database in cPanel

This guide shows you how to remove a database you no longer need from your cPanel account.

Databases2 min read18 steps3 screenshots

What is a database?

A database is a store where a website keeps its information. A blog keeps posts and comments there. A shop keeps products and orders.

cPanel is the control panel for your hosting. It is a web page where you manage your site.

Warning: deleting a database removes all data in it for good. You cannot undo it. If a website still uses the database, that website will stop working. Take a backup first.

Step 1: back up the database

  1. Log in to cPanel. Your welcome email has the link and login.
  2. In the Databases section, click phpMyAdmin.
  3. Click the database name in the left panel.
  4. Click the Export tab.
  5. Click Export. A file saves to your computer.
  6. Keep that file somewhere safe.

Step 2: delete the database

  1. Go back to the cPanel home page.
  2. In the Databases section, click MySQL Databases (or Manage My Databases in newer versions).
    manage-my-database
  3. Scroll down to Current Databases.
    Manage My Databases application
  4. Find the database you want to remove.
  5. Click Delete in that row.
  6. A message asks if you are sure. Read the name again.
    Click on Delete Database
  7. Click Delete Database to confirm.

Step 3: delete the database user (optional)

A database user is a login for a database. Deleting a database does not delete its users. Remove the ones you no longer need.

  1. On the same MySQL Databases page, scroll to Current Users.
  2. Find the user that belonged to the deleted database.
  3. Make sure no other database uses it.
  4. Click Delete next to the user.
  5. Click Delete User to confirm.

Check your website

Open your website. If it was meant to be live, make sure it still works. Check the config file of any app that used the database. For WordPress this is wp-config.php.

Tip: Not sure which database a site uses? For WordPress, open wp-config.php in File Manager and look for DB_NAME.

Quick recap

  • Deleting a database removes its data for good.
  • Export a backup in phpMyAdmin first.
  • Delete it from MySQL Databases in cPanel.
  • Remove unused database users too.