1. Remove the web application from the Tomcat webapps directory.
# cd /var/lib/tomcat8/webapps
# rm -rf ROOT ROOT.war
(if you installed as hmdm or another directory, replace ROOT to this directory)
2. Remove the Tomcat configuration file for Headwind MDM
rm /var/lib/tomcat8/conf/Catalina/localhost/ROOT.war
3. Flush the PostgreSQL database:
# service postgresql restart
# su postgres
> drop database hmdm;
> create database hmdm;
> \q
The restart of postgresql service prevents the Headwind MDM database from locking.
4. Remove the Headwind MDM directory (defaults to /opt/hmdm):
rm -rf /opt/hmdm
After these actions, you can safely re-run the installer script of Headwind MDM:
# bash ./hmdm_install.sh