Code for Cleaning the policies