func (r *GormTrackerRepository) Delete(ctx context.Context, ID string) error {
	var t = Tracker{}
	id, err := strconv.ParseUint(ID, 10, 64)
	if err != nil || id == 0 {
		// treat as not found: clients don't know it must be a number
		return NotFoundError{entity: "tracker", ID: ID}
	}
	t.ID = id
	tx := r.db.Delete(t)
	if err = tx.Error; err != nil {
		return InternalError{simpleError{err.Error()}}
	}
	if tx.RowsAffected == 0 {
		return NotFoundError{entity: "tracker", ID: ID}
	}
	return nil
}
// Delete deletes the tracker with the given id
// returns NotFoundError or InternalError
Delete deletes the tracker with the given id
returns NotFoundError or InternalError
// Delete deletes the tracker with the given id // returns NotFoundError or InternalError
func (r *GormTrackerRepository) Delete(ctx context.Context, ID string) error {
	var t = Tracker{}
	id, err := strconv.ParseUint(ID, 10, 64)
	if err != nil || id == 0 {
		return NotFoundError{entity: "tracker", ID: ID}
	}
	t.ID = id
	tx := r.db.Delete(t)
	if err = tx.Error; err != nil {
		return InternalError{simpleError{err.Error()}}
	}
	if tx.RowsAffected == 0 {
		return NotFoundError{entity: "tracker", ID: ID}
	}
	return nil
}
func ( r * GormTrackerRepository ) Delete ( ctx context . Context , ID string ) error { var t = Tracker { } id , err := strconv . ParseUint ( ID , 10 , 64 ) if err != nil || id == 0 { return NotFoundError { entity : " " , ID : ID } } t . ID = id tx := r . db . Delete ( t ) if err = tx . Error ; err != nil { return InternalError { simpleError { err . Error ( ) } } } if tx . RowsAffected == 0 { return NotFoundError { entity : " " , ID : ID } } return nil }
Delete deletes the tracker with the given id
returns NotFoundError or InternalError
Delete deletes the tracker with the given id returns NotFoundError or InternalError
// treat as not found: clients don't know it must be a number