delete dpm function