cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nils
Lansweeper Tech Support
Lansweeper Tech Support

TL;DR-Sweepy-Icon (1).png
This page explains how you can uninstall LsAgent from your Windows, macOS and Linux computers.


Lansweeper includes several scanning methods to scan the assets in your network, both agent-based and agentless. One of our agent-based scanning methods is called LsAgent, which is a cross-platform scanning agent that can scan computers both inside and outside of your network. For an in-depth look at LsAgent, check out Introduction to LsAgent.

However, you might want to uninstall LsAgent for a number of reasons: you may want to shift to agentless scanning instead, meaning LsAgent is no longer necessary, or perhaps you want to enjoy the benefits of IT Agent Discovery.

You won’t lose any data when uninstalling LsAgent, as all data is sent to your scanning server and isn’t saved on the relay server.

Uninstall LsAgent on Windows

  1. Go to the \LansweeperAgent\ folder.
  2. Run the uninstall.exe file.
  3. In the pop-up, select Yes.
  4. Select Ok.
LsAgent has now been uninstalled.

Alternatively, you can uninstall LsAgent from the web console.

  1. In your web console, go to Scanning > LsAgent Scanning.
  2. Tick the LsAgent assets you want to uninstall.
  3. Select Delete.
  4. In the pop-up, select Yes.

The next time the service is restarted, LsAgent will be uninstalled.

You can restart the LsAgent service manually by opening Task Manager > Services, and selecting Restart for the LansweeperAgentService service.

Uninstall LsAgent on macOS

  1. Go to the /Applications/LansweeperAgent folder.
  2. Run the uninstall.app file.
  3. In the pop-up, select Yes.
  4. Select Ok.
LsAgent has now been uninstalled.

Uninstall LsAgent on Linux

  1. Open a terminal, and enter the following:
    $ sudo /opt/LansweeperAgent/uninstall
  2. Enter “Y” to uninstall LsAgent and all of its modules.
LsAgent has now been uninstalled.

Alternatively, you can uninstall LsAgent from the web console.

  1. In your web console, go to Scanning > LsAgent Scanning.
  2. Tick the LsAgent assets you want to uninstall.
  3. Select Delete.
  4. In the pop-up, select Yes.

The next time the service is restarted, LsAgent will be uninstalled.

You can restart the LsAgent service manually by opening a terminal and entering:
$ sudo systemctl restart ls-agent.service

Was this post helpful? Select Yes or No below!
Did you have a similar issue and a different solution? Or did you not find the information you needed? Create a post in our Community Forum for your fellow IT Heroes!
More questions? Browse our Quick Tech Solutions.


Was this article helpful? Yes No
No ratings

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now
Version history
Last update:
‎12-06-2023 04:36 PM
Updated by: