Removing an account does not remove the database

xml

Well-Known Member
Jan 15, 2004
110
4
168
Hi,
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:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,163
2,410
363
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:

Code:
Removing MySQL databases and users......Done
Revoking MySQL Privs.......Done
Removing PostgreSQL databases and users...info [removeacct] PGSQL: Remove dbuser cptest2 for owner cptest2 on
...Done
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?