'Deleting host by name.'

@kaminario_logger
def _delete_host_by_name(self, name):

    host_rs = self.client.search('hosts', name=name)
    if (hasattr(host_rs, 'hits') and (host_rs.total != 0)):
        host = host_rs.hits[0]
        host.delete()
