Use thread context for deleting the ratings.