only call remove.config if it exists