delete host function