Control Web Panel

WebPanel => How to => Topic started by: Bestariweb Hosting on April 18, 2015, 03:39:20 PM

Title: How to delete account manualy
Post by: Bestariweb Hosting on April 18, 2015, 03:39:20 PM
Dear Master,
I try to delete account via web panel but error.
And if we try to add the same account, it's error Username XXX already exists in database!

Can anyone help me how to delete / clean an account trough SSH command?

Thank you
Title: Re: How to delete account manualy
Post by: Bestariweb Hosting on April 18, 2015, 04:10:01 PM
Sorry.. I have solve this..
just delete user in root_cwp database

thankyou
Title: Re: How to delete account manualy
Post by: pedromidiasf on May 05, 2015, 08:41:31 PM
You also need to remove the account from the CENTOS system, otherwise you might be able to access throw ftp or ssh
Title: Re: How to delete account manualy
Post by: Bestariweb Hosting on May 08, 2015, 03:27:19 PM
You also need to remove the account from the CENTOS system, otherwise you might be able to access throw ftp or ssh

Can you describe how me to delete an account from CentOS System?
Title: Re: How to delete account manualy
Post by: mamota on April 23, 2017, 03:42:59 PM
Dear friend,

Thanks in advance

i have similar situation, how to delete account manualy from terminal, because I have reset the panel and I can only use termin

Wait for your early reply.
Title: Re: How to delete account manualy
Post by: overseer on May 17, 2020, 08:26:11 PM
I had a case where a deleted user was not in the CWP MySQL DB, but still left a trailing CentOS user and config files.
Code: [Select]
sudo userdel -f $USERto delete the user account, home directory, and mail spool.

But then I had to do a
Code: [Select]
locate $USER to find other straggler files (SSL, MySQL DB backups, Apache logs, etc.). Then I manually deleted all those orphaned files. Then I could re-migrate the user from a cPanel server.