def delete_user(key=None, user_id=None): if key: return service.User.get_by_key_name(key).delete() if user_id: return service.delete_from(service.User, user_id=user_id)
def delete_tag(key=None, name=None): if key: return service.Tag.get_by_key_name(key).delete() if name: return service.delete_from(service.Tag, name=name)