Remove scratch queries