Uninstalling Allegra#
This chapter describes how to uninstall Allegra from Windows systems.
Attention
Before uninstalling, ensure you have a full backup of your database and your <ALLEGRA_HOME> directory (which contains attachments, templates, and configuration files — defined during installation and located within the installation directory by default).
Summary#
# Stop Allegra
allegra.bat stop
# or, if installed as a service
# Remove Allegra service (if installed)
allegra.bat uninstall-service
# Delete Allegra directories
rmdir "<INSTALLATION_DIRECTORY>" /S /Q"
# and optionally your ALLEGRA_HOME directory
Note
The <INSTALLATION_DIRECTORY> contains Allegra’s program files and scripts.
The <ALLEGRA_HOME> directory stores all attachments, templates, and configuration files.
Delete both only if you no longer need the data.
Uninstalling the Service#
If Allegra was installed as a Windows service, remove it first:
Stop the Allegra service
via service mannager
Remove the service
From within your
<INSTALLATION_DIRECTORY>, run:allegra.bat uninstall-service
This removes the Allegra service from Windows.
Verify service removal
Open Windows Services Manager (
services.msc) and confirm the Allegra service is no longer listed.
Deleting the Application#
After removing the service (if installed), delete the Allegra installation files.
Delete the installation directory
Delete the folder where Allegra is installed (your
<INSTALLATION_DIRECTORY>), for example:C:\allegra
Delete the ``<ALLEGRA_HOME>`` directory (optional)
If you want to completely remove all data, delete the Allegra home directory:
C:\allegra-data
Warning
This permanently deletes all attachments, templates, and uploaded files. Only perform this step if you are certain you no longer need the data.
Remove the Allegra database (optional)
If you want to remove the Allegra database, use your database management tool:
PostgreSQL:
dropdb -U postgres allegra
MySQL/MariaDB:
mysql -u root -p DROP DATABASE allegra;
Microsoft SQL Server:
DROP DATABASE allegra;
Warning
This permanently deletes all Allegra data from the database. Only do this if you are certain you no longer need the stored information.
Clean Up (Optional)#
If desired, you can also remove:
Java installation – if used only for Allegra
Database server – if used only for Allegra
Firewall rules created for the Allegra port (default: 8080)
After completing these steps, Allegra is completely removed from your Windows system.