@RequireLogin(role='admin')
def delete(request, username):
    from api.models import db_model
    dbc = db_model.connect()
    user = dbc.hbuser.find_one({"username": username})
    if user is None:
        return HttpResponseNotFound("user not found")
    else:
        dbc.hbuser.remove(user)
        logger.info("user '%s' deleted by '%s'" % (username, request.user['username']))
        return HttpResponse()
Retrieve full internal scoring details. Requires special permissions
dataset/ETHPy150Open emccode/heliosburn/heliosburn/django/hbproject/api/views/user.py/delete--crossover with--dataset/ETHPy150Open StackStorm/st2contrib/packs/lastline/actions/lib/analysis_apiclient.py/AnalysisClientBase.get_detections