code: func (c *WorkItemLinkController) Delete(ctx *app.DeleteWorkItemLinkContext) error {
  	currentUserIdentityID, err := login.ContextIdentity(ctx)
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, errors.NewUnauthorizedError(err.Error()))
  	}
  	authorized, err := c.checkIfUserIsSpaceCollaboratorOrWorkItemCreator(ctx, ctx.LinkID, *currentUserIdentityID)
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, err)
  	}
  	if !authorized {
  		return jsonapi.JSONErrorResponse(ctx, errors.NewForbiddenError("user is not authorized to delete the link"))
  	}
  	err = application.Transactional(c.db, func(appl application.Application) error {
  		return appl.WorkItemLinks().Delete(ctx.Context, ctx.LinkID, *currentUserIdentityID)
  	})
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, err)
  	}
  	return ctx.OK([]byte{})
  }
docs: //
  // Delete runs the delete action