Removing and validating the scripts