The subscription was removed from the PPA, but domain still present under "Services->Websites". When attempting to remove this domain with Plesk CLI, the following error appears:
[root@ppa ~]# /usr/local/psa/bin/domain -r domain.com There is no DSMail service for domain with id = 2351
Some database inconsistency. Plesk considers that this domain has mail hosting, but appropriate binding in the "DomainServices" table is missing:
mysql> select id from DomainServices where dom_id=2351 and type='mail'; Empty set (0.00 sec)
Remove mail hosting from this domain by the following command:
[root@ppa ~]# /usr/local/psa/bin/domain -u domain.com -mail_service false SUCCESS: Update of domain 'domain.com' completed.
after that, the domain can be successfully removed from Plesk:
[root@ppa ~]# /usr/local/psa/bin/domain -r domain.com SUCCESS: Removal of 'domain.com' completed.