Skip to main content

Deactivating & Deleting Agents

Understand agent reachability states, delete Network Agents or Remote Workers to free licenses, or automate Remote Worker cleanup via Data Retention.

Written by Panickos Neophytou

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 disconnected event in the Event Log and Events workspace, evaluates Agent Up/Down alerts on Network Agents, and sets running continuous target tests on the agent to Unknown so offline sensors do not trigger false target-test failure alerts.

  • When an Agent Activates (Reconnects): NetBeez records a connected event, 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:

  1. Navigate to Agents → Network Agents or Agents → Remote Workers and click the agent to open Agent Details.

  2. Click the More (...) button in the top-right header and select Delete Agent.

  3. In the Delete Agent confirmation modal (Are you sure you want to delete <Agent Name>?), click Delete (or Cancel to keep the agent).

Delete Agent confirmation modal asking Are you sure you want to delete the selected agent with Cancel and Delete buttons

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:

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:

  1. Locate Unreachable Remote Worker Agents Cleanup (set to Disabled by default).

  2. 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), or Past 2 years (730 days).

  3. Save your Data Retention settings.

Settings Data Retention page highlighting the Unreachable Remote Worker Agents Cleanup policy setting

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.

Did this answer your question?