How to delete a database safely (without breaking your site) Print

  • 0

Overview

Deleting a database is permanent and cannot be undone. Make sure your website is not using that database before removing it.

Step 1 — Confirm which database your site uses

For WordPress

Check your wp-config.php file:

DB_NAME
DB_USER
DB_PASSWORD

For other PHP apps

Check the configuration file (config.php, .env, settings.php).

Step 2 — Download a backup

In case you need it later:

  1. Open phpMyAdmin
  2. Select your database
  3. Click Export
  4. Choose Quick → SQL
  5. Download the file

Step 3 — Delete the database

  1. Open DirectAdmin → MySQL Management
  2. Click the database name
  3. Click Delete
  4. Confirm the deletion

Warning

  • Your website will stop working if you delete an active database.
  • Always create a backup before deleting any database.

Was this answer helpful?

« Back