changing post to delete call
changing post_delete_hosts to just delete_hosts