The official agent installer for Microsoft Windows includes an uninstaller. However, if you need to manually uninstall the agent, follow these steps.
Delete the Agent Service
As an administrator, open a command prompt and run:
sc.exe stop MedplumAgent
sc.exe delete MedplumAgent
Delete the Agent Files
Make sure the agent is stopped and deleted before attempting to delete the files.
This will delete all configuration files and log data.
As an administrator, delete all files in the following directories:
C:\Users\$USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Medplum Agent
Delete the Agent Registry Keys
As an administrator, open the registry editor and delete the following keys (if they exist):