def POST(self, pageId): if pageId: page_service.destroy(pageId) else: raise web.notfound("page id must be valid.") web.seeother('/admin/pages')