'DELETE /api/quotas/{encoded_quota_id}
Deletes a quota'

@web.expose_api
@web.require_admin
def delete(self, trans, id, **kwd):

    quota = self.get_quota(trans, id, deleted=False)
    payload = kwd.get('payload', {})
    payload['id'] = id
    params = self.get_quota_params(payload)
    try:
        message = self._mark_quota_deleted(quota, params)
        if util.string_as_bool(payload.get('purge', False)):
            message += self._purge_quota(quota, params)
    except ActionInputError as e:
        raise HTTPBadRequest(detail=str(e))
    return message
