def _labels_delete(label, instance):
    count = instance.tags.count()
    instance.tags.remove(label)

    if isinstance(instance, XForm):
        xform_tags_delete.send(sender=XForm, xform=instance, tag=label)

    # Accepted, label does not exist hence nothing removed
    http_status = status.HTTP_202_ACCEPTED if count == instance.tags.count()\
        else status.HTTP_200_OK

    return [http_status, list(instance.tags.names())]
Perform a bulk update or insertion of the given documents using a
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/mixins/labels_mixin.py/_labels_delete--crossover with--dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Database.update