3.5. Uninstall Endpoint Agents
The following sections contain commands for uninstalling Endpoint Agents on endpoints.
Note
The commands contain names used by the default installer packages. If you have generated custom installer packages with a custom service and binary name, adjust the commands accordingly.
3.5.1. Uninstall Endpoint Agents on Windows
You need administrative privileges to remove the Endpoint Agent from Windows. Open a Command Prompt as Administrator and run the following commands:
1C:\Windows\system32>C:\Windows\system32\asgard2-agent\asgard2-agent-service.exe stop
2C:\Windows\system32>C:\Windows\system32\asgard2-agent\asgard2-agent-service.exe uninstall
3C:\Windows\system32>rmdir /S /Q C:\Windows\System32\asgard2-agent
4C:\Windows\system32>rmdir /S /Q C:\ProgramData\thor
Note
Change system32 to SysWOW64 if you are running the agent on an
x86 machine.
These commands perform the following actions in order:
Stop the Endpoint Agent service
Uninstall the Endpoint Agent service
Delete all Endpoint Agent files
Remove THOR-related data from ProgramData
3.5.2. Uninstall Endpoint Agents on Linux
RPMs via yum
user@host:~$ sudo yum remove asgard2-agent
user@host:~$ sudo rm -r /var/lib/thor
DEBs via dpkg
user@host:~$ sudo dpkg -P asgard2-agent
user@host:~$ sudo rm -r /var/lib/thor
Manual uninstall
user@host:~$ sudo asgard2-agent-service stop
user@host:~$ sudo asgard2-agent-service uninstall
user@host:~$ sudo rm -r /usr/sbin/asgard2-agent-service
user@host:~$ sudo rm -r /var/tmp/asgard2-agent
user@host:~$ sudo rm -r /var/lib/asgard2-agent
user@host:~$ sudo rm -r /var/lib/thor
3.5.3. Uninstall Endpoint Agents on macOS
user@mac:~$ sudo /private/var/lib/asgard2-agent/asgard2-agent-service stop
user@mac:~$ sudo /private/var/lib/asgard2-agent/asgard2-agent-service uninstall
user@mac:~$ sudo rm -r /private/var/lib/asgard2-agent
user@mac:~$ sudo rm -r /var/tmp/asgard2-agent
user@mac:~$ sudo rm -r /var/lib/thor
Manually remove asgard2-agent-service from System Settings >
Privacy & Security > Full Disk Access.