Clear Color Pallet

Is there a way to clear the color pallet in a particular file and reset it to only those colors used in the design?