While you are deleting "taskinstances" for deleted machines, which retained task summaries in the database, it would not allow deletion from UI.
ITMS 8.7.x
Known issue.
This issue has been fixed in our ITMS 8.8 Release.
Task statuses are now removed from task grid after delete task instances on Task UI for deleted computers.