The safest way is to use a web application such as [https://www.amahi.org/apps/adminer Adminer] or [https://www.amahi.org/apps/phpmyadmin phpMyAdmin]. TO do it via command line, execute the command below for each ''id' that needs to be deleted from the database:
echo "delete from webapps where id=2" | mysql -uroot -phda p hda_production '''WARNING:''' Please see [[Database Root Password]] for the appropriate login password.
Once these steps are complete, it should be safe to try and install the application. Monitor the '''/var/log/amahi-app-installer.log''' file for progress and errors via command line: