Removing an account does not remove the database


Well-Known Member
Jan 15, 2004
First time this happen but on a new Linux VPS
when I remove an account using the command:
/scripts/removeacct xyz
and try to restore the same account
/scripts/restorepkg cpmove-xyz.tar.gz

I get this message during the process of restoration:
The system will restore the database “xyz_xf2212” as “xyz_xf22122” because another cPanel user owns “xyz_xf2212”.

When I check on WHM phpMyAdmin I do find the database of the removed account still exist. Why is that?
Last edited by a moderator:


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! I'm not able to reproduce this behavior on a test machine. When I execute "/scripts/removeacct username" I see this section appear in the output:

Removing MySQL databases and users......Done
Revoking MySQL Privs.......Done
Removing PostgreSQL databases and [removeacct] PGSQL: Remove dbuser cptest2 for owner cptest2 on
Removing WHM API Token entries..........Done
Removing cPanel API Token entries..........Done
Removing User & Group..........Done
Updating Databases......Done
I also confirmed the database was removed from the server, both in WHM >> PHPMyAdmin and directly in the /var/lib/mysql directory over SSH.

If that database wasn't removed, is it possible it wasn't properly associated with that account to begin with?