3.3. Uninstall ASGARD Agents
The following listings contain commands to uninstall ASGARD 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, you have to adjust the commands accordingly.
3.3.1. Uninstall ASGARD Agents on Windows
You need administrative privileges to remove the ASGARD 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 a x86 machine.
These commands perform the following actions in order:
Stop the ASGARD Agent service
Uninstall the ASGARD Agent service
Delete all ASGARD Agent files
Remove THOR-related data from ProgramData
3.3.2. Uninstall ASGARD 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.3.3. Uninstall ASGARD 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 /var/lib/asgard2-agent
user@mac:~$ sudo rm -r /var/lib/thor
Remove manually the asgard2-agent-service from System Settings > Privacy & Security > Full Disk Access.