Years ago, I learned this trick from Michael Chiarello from Napa and the last Next Iron Chef. To use your coffee grinder as a spice grinder, put a torn up piece fo bread into the grinder and turn it on making bread crumbs. Do the same thing after grinding spices. Clean grinder no trace of either.