Removing database contents is a destructive operation, so first decide whether you need to delete the entire database or only its tables. The two procedures below have different outcomes and should not be treated as interchangeable ways to empty rows.

Remove the entire database through SSH

Use this method only when the database itself is no longer required. You need SSH access and an authorised database user with the required privileges.

  1. Connect through SSH and open the database client. Replace db_user with the approved database username:

    mysql -u db_user -p
  2. Enter the password at the prompt. Do not put it in the command.

  3. Check the exact database name, including any cPanel account prefix:

    SHOW DATABASES;
  4. Only after confirming the intended target and backup, execute the following, replacing the example name:

    DROP DATABASE `account_database`;
  5. Type exit to leave the client. On a cPanel-managed account, use its database-management interface where possible so the control panel also tracks the change correctly.

Remove tables through phpMyAdmin

  1. Log in to the owning cPanel account and open phpMyAdmin.
  2. Select the intended database in the left panel and open Structure.
  3. Review the tables, then select only those you intend to remove. Check all selects every listed table.
  4. Choose Drop and inspect the confirmation before approving it.

Dropping tables removes their structure and data while leaving the database itself. Other objects, such as routines or events, may remain. If you want to retain the schema and remove rows instead, stop and plan that separate operation with the application’s administrator.