The process typically involves heating the nanomaterials to temperatures that are sufficient to decompose or volatilize contaminants. The specific temperature and duration depend on the type of nanomaterial and the contaminants present. Often, this is done in a controlled environment such as a vacuum chamber or in the presence of an inert gas to prevent unwanted reactions.