Deleting a collector service
This page explains how to delete a collector service.
Collectors without active measurements can be safely deleted. After deletion, it is recommended to stop the collector service to prevent it from attempting to send data to the Historian.
For data continuity, it is best practice to first re-link a collector instance in the Historian webpage to a new collector service, and only then delete the old service.
Delete a collector service
Before deleting a collector service, stop the collector service first.
If the service is not stopped, the deleted collector will enter an indefinite sleep state while keeping the service running. This is to prevent the collector from needlessly retrying the connection with the Historian server.
Collector service naming
Collector services are named after the collector UUID shown in the Historian. You can find the UUID by selecting the collector in the Historian webpage and checking the ID field in the details panel.
Example:
Windows
- Open the Windows Services Manager
- Locate the collector service by name
- Stop the service
- Open a Command Prompt as Administrator
- Delete the service:
sc delete "factry-collector-service-name"Linux (systemd)
Run the following commands in a terminal with sudo privileges to stop, disable, and remove the collector service:
systemctl stop factry-collector-service-name
systemctl disable factry-collector-service-name
rm /etc/systemd/system/factry-collector-service-name.service
systemctl daemon-reloadExpected outcome
After deleting a collector service:
- The collector service is removed from the host system
- No further data is sent by the deleted collector service
Troubleshooting
Collector continues sending data or is still reporting status
- Refresh the Historian webpage
- Confirm the collector service is stopped and removed from the host system
- Check for multiple collector services running for the same collector