Current Version:2.4
Build:1
I have the same problem. The domain alias cannot be deleted. Even if it is deleted from OLS, it still appears in cyberpanel.
I’ve been experiencing the same issue on AlmaLinux 9.7 with CyberPanel 2.4.4. I found a manual workaround to completely remove a website when the dashboard fails to clean up all records.
After deleting the site via the CyberPanel dashboard, I connect to the server via SFTP/FTP, check the following configuration files, and manually remove the entries related to the deleted domain.
DISCLAIMER: I take no responsibility for any issues this may cause. This is only a suggestion based on my experience. Always take a full backup of your server and database before proceeding!
1. Manual File Configuration Cleanup
Check and edit the following files to remove any lines related to the deleted website:
/etc/passwd
/etc/shadow
/etc/gshadow
/etc/subgid
/etc/dovecot/dovecot.conf
/etc/opendkim/KeyTable
/etc/opendkim/SigningTable
/etc/opendkim/TrustedHosts
/etc/opendkim/keys/mail.yourdomain.com/*
/etc/postfix/vmail_ssl.map
2. Database Cleanup (via phpMyAdmin)
Log in to phpMyAdmin and navigate to the cyberpanel database. Carefully remove the rows related to the deleted website from the following tables:
websiteFunctions_websites
websiteFunctions_childdomains
websiteFunctions_backups
users
records
loginSystem_administrator
e_users
e_domains
emailPremium_emaillimits
emailPremium_domainlimits
domains
databases_databases
IMPORTANT NOTE: Be extremely careful when performing deletions directly on the database. Removing the wrong table or row can lead to irreversible system errors!