'Remove an obj of id obj_id from the model, if found there'

def remove_object(self, obj_id):

    potential_host_id = obj_id.split('.')[0]
    is_host = (len(obj_id.split('.')) == 1)
    if is_host:
        self.remove_host(host_id=obj_id)
    else:
        host = self.get_single_host_function(potential_host_id)
        if host:
            self._modify_vuln_amount_of_single_host_in_model(host.getID(), host.getVulnAmount())
