After PHP handler is uninstalled it is still displayed as corrupt in Tools & Settings > PHP Settings:
There are websites, assigned to this handler even though it is removed:
# plesk db -Ne "select d.name from hosting h right join domains d on d.id=h.dom_id where h.php_handler_id like 'plesk-php72%';"
Website, assigned to the removed handler, do not have PHP Settings button in Domains > example.com:
A bug is registered with ID #PPPM-7677. It will be fixed in the future updates.
Until the fix is released, a workaround can be applied:
Connect to the server via SSH/RDP;
Reinstall the removed PHP version using Plesk installer:
# plesk installer --select-release-current --install-component php7.2
Switch domains that make use of this handler to a different one, for example, PHP 7.1.12, by running the query:
# for i in $(plesk db -Ne "SELECT d.name FROM hosting h RIGHT JOIN domains d ON d.id=h.dom_id WHERE h.php_handler_id LIKE 'plesk-php72%';"); do plesk bin site -u $i -php_handler_id plesk-php71-fpm; done
Note: As a result, all domains, using removed PHP 7.2 will be switched to PHP 7.1 FPM. This behavior might be changed by modification of highlighted entries to a different handler ID.
Remove the PHP handler using Plesk installer:
# plesk installer --select-release-current --remove-component php7.2