[Fixes #54402830] Deleting a task compacts its Job's indices