utility function to remove all attributes

remove_attributes(x)