---
title: "Uninstall the DataSync Agent"
canonical: "https://docs.perspectium.com/space/Iodine/1705013/Uninstall%20the%20DataSync%20Agent"
format: markdown
---
The following are commands to uninstall the  DataSync Agent  from a command line interface on   supported Windows and Linux devices .  The  DataSync Agent  can be installed and ran as a service. If you are performing a complete removal it is recommended to first uninstall the Agent as a service. After installing the  DataSync Agent,  the agent will notify you that an uninstaller program has been created within the  Uninstaller  folder. The uninstaller will remove everything barring the log files/folder. The uninstaller will delete everything, including the root Perspectium folder, if the   “logs”   folder is empty. Linux  Uninstall the Service Execute the following commands in the root directory of the Agent: <agent_folder>/bin/uninstallDaemon.sh Uninstall the Agent Execute the following commands in the root directory of the Agent: java -jar <agent_folder>/Uninstaller/uninstaller.jar   NOTE : You could also double click/open the jar file in your file system. The uninstaller is generated on installation and if you change the name of the root Perspectium Folder than the uninstaller will not remove anything. The name of the original directory should be stored in   Uninstaller/installSummary.htm . ↑ Go to top of page Windows Uninstall the Service Double-click the following file in the  bin folder  to initiate uninstalling your DataSync Agent: uninstallService.bat  Uninstall the Agent Execute the following commands in the root directory of the Agent: java -jar Uninstaller/uninstaller.jar   NOTE : You could also double click/open the jar file in your file system. The uninstaller is generated on installation and if you change the name of the root Perspectium Folder than the uninstaller will not remove anything. The name of the original directory should be stored in   Uninstaller/installSummary.htm . ↑ Go to top of page