Uninstalling Allegra#

This chapter describes how to uninstall Allegra from Windows systems.

Attention

Before uninstalling, ensure you have backups of:

  • Your complete database

  • Your ALLEGRA_HOME directory (contains all attachments, templates, and configuration)

Uninstalling the Service#

If Allegra is installed as a Windows service, you must remove it first:

  1. Stop the Allegra service:

    Open Command Prompt as Administrator and run:

    net stop Allegra
    
  2. Remove the service:

    cd C:\allegra
    allegra.exe //DS//Allegra
    

    This removes the Allegra service from Windows.

  3. Verify service removal:

    Open Services (services.msc) and confirm the Allegra service is no longer listed.

Deleting the Application#

After removing the service (if installed), delete the Allegra installation:

  1. Delete the installation directory:

    Delete the folder where Allegra is installed, typically:

    C:\allegra
    
  2. Delete ALLEGRA_HOME directory (optional):

    If you want to completely remove all data, delete the ALLEGRA_HOME directory:

    C:\allegra\allegra-home
    

    Warning

    This permanently deletes all attachments, templates, and uploaded files. Only do this if you’re certain you don’t need the data.

  3. Remove database (optional):

    If you want to remove the Allegra database, use your database management tools:

    PostgreSQL:

    dropdb -U postgres allegra
    

    MySQL:

    mysql -u root -p
    DROP DATABASE allegra;
    

    Warning

    This permanently deletes all Allegra data. Only do this if you’re certain you don’t need the data.

Clean Up (Optional)#

If desired, you can also remove:

  • Java installation (if only used for Allegra)

  • Database server (if only used for Allegra)

  • Any firewall rules created for Allegra

That’s it! Allegra is now completely uninstalled from your Windows system.