Description
When collecting metrics at a task level exposed via JMX it was noticed that task level metrics reported under
kafka.connect:type=task-error-metrics,connector="{connector}",task="{task}"
were not being removed on connector deletion resulting in us collecting metrics for tasks no longer active.
In the source code I could not find a point where these metrics were cleaned up.