function to remove state drawables.