When a worker node is decommissioned or detection server is removed. The worker node is showing offline.
The worker node records exist based on being reported by the data node and cannot be deleted or removed in the console. If a worker node is uninstalled then as part of that uninstall, the server would deregister from the data node and the data node would submit a delete for it.
Once the data node reports the worker node is removed it will execute a delete in the database and will then reflect in the UI.
The deletion is not immediate and could take some time before it reflects in the UI.