def POST(self, postId): if postId: post_service.destroy(postId) else: raise web.notfound("post id must be valid.") web.seeother('/admin/posts')