Unable to remove database from HC panel

Question: Unable to delete MySQL database from HC Panel and getting error message: Error: 73100040: Unable to delete login?

Solution:
This error comes in case if you try to delete the MySQL database from HC panel that does not exist in MySQL Server. In order to remove this non existed MySQL database reference from HC panel, go to mySQL\Data folder and create a folder with the same name as the database name. Now try to delete the database from HC panel and this time MySQL database reference will be deleted successfully without any error message.

Alternative way:
Open HC database table TblDatabases and remove db from there.