#3849 fixed and unit tested issue with host delete