Agent

Remove the agent

Agent setup guide
Setup guides: Prerequisites · What you can scan · Cloud connectors · Check the download · Remove the agent

Removing the agent takes a few steps: revoke its key in your dashboard, turn off its daily scan, then delete its files.

Removing the agent does not delete your past results. They stay in your dashboard unless you ask support@quantinus.io to delete your data.

Windows

  1. In your dashboard, open Connectors, find this agent in the Agents table and choose Revoke. The key stops working at once.

With agent 0.7.3 or later, one command does steps 3 and 4: .\quantinus-agent-windows-amd64.exe uninstall. Run it in the PowerShell window from step 2. It also removes C:\Program Files\Quantinus, unless you run it from that folder. It ends by naming the agent file it could not delete; delete that file, and the folder if it is still there. Older agents: follow the steps below.

  1. Open PowerShell as administrator: open the Start menu, type PowerShell, right-click it and choose Run as administrator.
  2. Go to the folder that holds the agent file, then turn off the daily scan:
    .\quantinus-agent-windows-amd64.exe schedule --remove
    If it says “No scheduled scan to remove”, there wasn’t one. Carry on.
  3. Delete the agent’s settings and saved files:
    Remove-Item -Recurse -Force "$env:ProgramData\Quantinus" -ErrorAction SilentlyContinue
    Remove-Item -Recurse -Force "$env:AppData\Quantinus" -ErrorAction SilentlyContinue
    The second line only clears the account you’re signed in as. If someone else set up the agent under their own account, they need to run it too.
  4. Delete the agent file, and the folder C:\Program Files\Quantinus if there is one.

Linux

  1. In your dashboard, open Connectors, find this agent in the Agents table and choose Revoke. The key stops working at once.

With agent 0.7.3 or later, sudo ./quantinus-agent-linux-amd64 uninstall does steps 2 and 3 and removes any copy in /usr/local/bin. Then run it once more without sudo, to remove your own account’s settings and a daily scan set up with --user, and delete the agent file. Older agents: follow the steps below.

  1. Turn off the daily scan:
    sudo ./quantinus-agent-linux-amd64 schedule --remove
    If you set the scan up for your own account only (with --user), turn that off too:
    systemctl --user disable --now quantinus-agent.timer
    rm -f ~/.config/systemd/user/quantinus-agent.service ~/.config/systemd/user/quantinus-agent.timer
  2. Delete the agent’s settings and saved files:
    sudo rm -rf /etc/quantinus /var/log/quantinus
    rm -rf ~/.config/Quantinus
  3. Delete the agent file, and the copy in /usr/local/bin if there is one.

On an ARM machine the file is quantinus-agent-linux-arm64.

macOS

  1. In your dashboard, open Connectors, find this agent in the Agents table and choose Revoke. The key stops working at once.

With agent 0.7.3 or later, ./quantinus-agent-darwin-arm64 uninstall removes the settings folder in step 3; if you ran setup with sudo, run it with sudo too. It does not edit your crontab or delete the scan log, so still do step 2, delete ~/Library/Logs/quantinus-scan.log, and delete the agent file (step 4). On an Intel Mac the file is quantinus-agent-darwin-amd64. Older agents: follow the steps below.

  1. If you added a daily scan, open your schedule with crontab -e and delete the line that runs the agent.
  2. Delete the agent’s settings and saved files:
    rm -rf ~/Library/Application\ Support/Quantinus ~/Library/Logs/quantinus-scan.log
  3. Delete the agent file.

Your dashboard's Connectors page has the downloads, your agent keys and the setup commands for your own account.