working code for scrapping system notices