YOu can remove DMF on a good rotavapor or more simply via aqueous work-up. Means you add an organic solvent (e.g. ethyl acetate, diethyl ether, dichloromethane, ...) and add water. Most of the DMF will go into the water layer. The combined organic layers will be washed then with water.