Remove Greenhold
An uninstall keeps your data and keys. This is on purpose. A reinstall then continues where you stopped.
The uninstall keeps:
- The agent key, identity and log.
- The gateway authority, listener certificate, data folder and logs.
- The Manager key ring.
- The database in PostgreSQL.
A full removal needs extra commands. Do the steps in the order shown.
Agent computer
Section titled “Agent computer”- Run
Greenhold.Agent.exe remove-identity --yes. Run it before you uninstall. It deletes the key and the folder of the agent. - Uninstall the agent:
msiexec /x C:\path\Greenhold-Agent-<version>-x64.msi /qn.
If you uninstalled first, do this:
- Install the agent again with no properties.
- Run
remove-identity --yes. - Uninstall again.
Server
Section titled “Server”-
Stop the services:
Terminal window Stop-Service GreenholdGateway, GreenholdManager -
Run
Greenhold.Gateway.exe remove --yesin an elevated prompt. It deletes the channel authority and the listener certificate with their keys. It deletes the data folder, but keeps the logs. It refuses to run while the service runs. -
Uninstall the server MSI.
-
Delete
%ProgramData%\Greenholdwhen you want nothing to remain. -
Drop the database as a PostgreSQL superuser:
DROP DATABASE greenhold;DROP ROLE gh_migrator, gh_runtime, gh_reader;
remove --yes --delete-logs deletes the logs too.
Keep for a reinstall
Section titled “Keep for a reinstall”Keep these items when you plan to install again:
root.key.jsonand its passphrase.- The key of the first administrator.
root.public.json.- A copy of the client secret of the Manager, or make a new one.
- The certificates for the Manager and for PostgreSQL.
Text CC BY 4.0. Code MIT.Third-party notices.