def delete(self): if "userID" not in session: abort(404) session.pop("userID") return jsonify({"result": True})