NetBeez tracks agent connection state in real time and provides manual, programmatic, and automated ways to remove decommissioned Network Agents and Remote Workers so you can reclaim license capacity cleanly.
In this article:
Agent Activation and Deactivation Lifecycle
Agents transition between Active (reachable) and Deactivated (unreachable) automatically based on their live control connection to the NetBeez server—there is no manual Activate/Deactivate toggle in the dashboard UI:
When an Agent Deactivates (Disconnects): NetBeez records the disconnect timestamp (shown as Unreachable Since on Agent Details), logs a
disconnectedevent in the Event Log and Events workspace, evaluates Agent Up/Down alerts on Network Agents, and sets running continuous target tests on the agent toUnknownso offline sensors do not trigger false target-test failure alerts.When an Agent Activates (Reconnects): NetBeez records a
connectedevent, updates Reachable Since, and automatically reactivates all periodic target tests assigned to the agent.License Usage: An unreachable (deactivated) agent remains registered in your inventory, preserves all historical metrics and assignments, and continues to count toward your licensed agent limit until deleted (see Settings - License Management).
Deleting an Agent from the Dashboard or API
Deleting an agent permanently removes it from your NetBeez server, releases any scheduled-test locks, detaches it from Agent Groups, Targets, Scheduled Tests, and Wi-Fi configurations, and frees its license seat. Deletion cannot be undone.
Unlike legacy NetBeez versions—which required an agent to be offline before deletion—NextGen allows users with delete permissions (Read-write and Administrator) to delete either an unreachable or an online agent:
Navigate to Agents → Network Agents or Agents → Remote Workers and click the agent to open Agent Details.
Click the More (
...) button in the top-right header and select Delete Agent.In the Delete Agent confirmation modal (
Are you sure you want to delete <Agent Name>?), click Delete (or Cancel to keep the agent).
You can also delete an agent programmatically via DELETE /agents/{id} (returns 204 No Content) using a Read WriteBot User token (see NetBeez API):
curl -sS -X DELETE "https://<your-netbeez-hostname>/agents/<agent_uuid>" \ -H "Authorization: Token token=<bot_password>, email=<bot_email>" \ -H "Accept: application/json"
Preventing Deleted Agents from Re-Registering
If you delete an agent whose NetBeez agent service is still running on a reachable host or laptop, the daemon will attempt to reconnect and register as a new agent, consuming a license seat again:
Controlled Decommission: Power off the hardware appliance or uninstall the software agent first (see How to Uninstall a NetBeez Software Agent [Linux] and How to Uninstall a macOS Remote Worker Agent) before clicking Delete Agent.
Unmanaged or Rogue Endpoints: If you cannot uninstall the agent on the remote device, choose More (
...) → Blacklist Agent instead. Blacklisting adds all of the agent's MAC addresses to Settings → Agents & Tests → Agent Blacklist and deletes the agent in one action so it is permanently blocked from re-registering (see Agent Configuration - Blacklist Agent).
Automatic Cleanup of Unreachable Remote Workers
Because employee laptops are frequently retired, re-imaged, or rotated, Administrators can configure NetBeez to automatically delete stale offline Remote Workers:
Navigate to Settings → Agents & Tests → Data Retention.
Locate Unreachable Remote Worker Agents Cleanup (set to
Disabledby default).Select an inactivity threshold from the dropdown:
Past week(7 days),Past 2 weeks(14 days),Past month(30 days),Past 2 months(60 days),Past 3 months(90 days),Past 6 months(180 days),Past year(365 days), orPast 2 years(730 days).Save your Data Retention settings.
When enabled, a daily background cleanup job (running at 3:30 AM server time) automatically deletes any Remote Worker that is currently unreachable and whose Unreachable Since timestamp exceeds your selected retention window. Network Agents are never deleted by this policy.


