'Returns number of deleted probes'

def clear_probes(self):

    ports = self.client.list_ports(device_id=socket.gethostname(), device_owner=[DEVICE_OWNER_NETWORK_PROBE, DEVICE_OWNER_COMPUTE_PROBE])
    info = ports['ports']
    for port in info:
        self.delete_probe(port['id'])
    return len(info)
