def delete_horse_person(id, assocId): """ Removes association :param id: Identifier of the horse :type id: str :param assocId: Identifier of the association :type assocId: int :rtype: None """ Data.delete(Association(id=assocId))
def delete_horse(id): """ Removes a horse from the barn :param id: Identifier of the horse :type id: str :rtype: None """ for s in Data.get_horse_schedules(id): Data.delete(s) for a in Data.get_horse_people(id): Data.delete(a) Data.delete(Horse(id=id))