Check out my post here → Changing a previously played episode/show/movie to unplayed deletes the data from dashboard watch history
The problem is when changing watched status it deletes the history from metadata_item_views which is used in the dashboard and nothing else. CW, recommended views, up next etc… use other table and database entries.