func (r *GormWorkItemLinkRepository) Delete(ctx context.Context, linkID uuid.UUID, suppressorID uuid.UUID) error {
	var lnk = WorkItemLink{}
	tx := r.db.Where("id = ?", linkID).Find(&lnk)
	if tx.RecordNotFound() {
		return errors.NewNotFoundError("work item link", linkID.String())
	}
	r.deleteLink(ctx, lnk, suppressorID)
	return nil
}
// Delete deletes the work item link with the given id
// returns NotFoundError or InternalError
Delete deletes the work item link with the given id
returns NotFoundError or InternalError
// Delete deletes the work item link with the given id // returns NotFoundError or InternalError
func (r *GormWorkItemLinkRepository) Delete(ctx context.Context, linkID uuid.UUID, suppressorID uuid.UUID) error {
	var lnk = WorkItemLink{}
	tx := r.db.Where("id = ?", linkID).Find(&lnk)
	if tx.RecordNotFound() {
		return errors.NewNotFoundError("work item link", linkID.String())
	}
	r.deleteLink(ctx, lnk, suppressorID)
	return nil
}
func ( r * GormWorkItemLinkRepository ) Delete ( ctx context . Context , linkID uuid . UUID , suppressorID uuid . UUID ) error { var lnk = WorkItemLink { } tx := r . db . Where ( " " , linkID ) . Find ( & lnk ) if tx . RecordNotFound ( ) { return errors . NewNotFoundError ( " " , linkID . String ( ) ) } r . deleteLink ( ctx , lnk , suppressorID ) return nil }
Delete deletes the work item link with the given id
returns NotFoundError or InternalError
Delete deletes the work item link with the given id returns NotFoundError or InternalError