get and delete hosts