def kv_delete(request, kv_class, kv_pk):
    Klass = resolve_class(kv_class)
    KVKlass = Klass.keyvalue_set.related.model
    try:
        kv = KVKlass.objects.get(pk=kv_pk)
    except KVKlass.DoesNotExist:
        return HttpResponse(
            status=404, content=json.dumps({'success': False})
        )
    kv.delete()
    return HttpResponse(
        status=204,
        content=json.dumps({'success': True})
    )
DVR / Disaster Victim Registry
dataset/ETHPy150Open mozilla/inventory/core/keyvalue/api.py/kv_delete--crossover with--dataset/ETHPy150Open sahana/eden/modules/templates/STL/menus.py/S3OptionsMenu.dvr