delete reset func.