def api_delete_comments(id, request): check_admin(request) c = await Comment.find(id) if c is None: raise APIResourceNotFoundError('Comment', 'Not Found!') await c.remove() return dict(id=id)