def _do_delete(self): item = Session.query(self.model).get(self.get_id()) Session.delete(item) self.request.session.flash(u'Item deleted successfully.', 'success') return HTTPFound(location=g.url(self.url_base))