def delete_feed(id=None): # Manual deletion of feed from database # TODO: Some confirmation required? Client JS via modal? if id is None: # return feed not found return jsonify(**FEED_NOT_FOUND) else: # TODO: Test ON DELETE CASCADE to Post table (should work) query = Feed.delete().where(Feed.id == id) query.execute() # return JSON status OK return jsonify(**STATUS_OK)