'DELETE /api/users/{id}
delete the user with the given ``id``
:param id: the encoded id of the user to delete
:type  id: str
:param purge: (optional) if True, purge the user
:type  purge: bool'

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

    if (not trans.app.config.allow_user_deletion):
        raise exceptions.ConfigDoesNotAllowException('The    configuration    of    this    Galaxy    instance    does    not    allow    admins    to    delete    users.')
    purge = util.string_as_bool(kwd.get('purge', False))
    if purge:
        raise exceptions.NotImplemented('Purge    option    has    not    been    implemented    yet')
    user = self.get_user(trans, id)
    self.user_manager.delete(user)
    return self.user_serializer.serialize_to_view(user, view='detailed')
