Delete Client not working over all tables
short description
Reseller (vhostdomains) and Subcustomers (vhostdomains) were setup by API and deleted in GUI (subcustomers first). Client table is cleaned, but e.g. spamfilter_users, web_domain, web_folder, web_database, web_database_user, cron, etc. NOT sys_userid and sys_groupid in the table are set correctly, therefore the records should be found for delete. FTP clientfolder are deleted.
When we use client_delete_everything to delete the reseller by api there is no regulation to delete the subcustomers first. But the resulting problem in the database is the same. The Vhost Files according to the web_domains table also remain on the server.
Beside the problem, a repair function would be nice to identify leftover rows in the db or system .
correct behaviour
environment
Server OS: Debian Server OS version: Stretch ISPConfig version: 3.1.12