def delete_backend(request): """Deletes a backend. .. note:: It assumes the user may re-add it later so it does not remove any key associations. """ backend_id = request.matchdict['backend'] user = user_from_request(request) methods.delete_backend(user, backend_id) return OK