Delete HRESULT function