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, typically the allegra-home folder inside the installation directory).
Summary#
REM Stop Allegra
allegra.bat stop
REM or, if installed as a service, stop it in the Windows Services Manager (services.msc)
REM Remove Allegra service (if installed)
allegra.bat uninstall-service
REM Delete Allegra directories
rmdir "<INSTALLATION_DIRECTORY>" /S /Q
REM 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
Use the Windows Services Manager (
services.msc).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
Warning
If your
<ALLEGRA_HOME>directory is located inside the installation directory (for exampleC:\allegra\allegra-home), deleting the installation directory also permanently deletes all attachments, templates, and uploaded files. To keep the data, move the<ALLEGRA_HOME>folder to another location first.Delete the folder where Allegra is installed (your
<INSTALLATION_DIRECTORY>), for example:C:\allegra
Delete the <ALLEGRA_HOME> directory (optional)
If your
<ALLEGRA_HOME>directory is located outside the installation directory (or you moved it in step 1) and you want to completely remove all data, delete that folder as well.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.