code: func deleteTaskAndContainer(ctx context.Context, cli libcontainerdtypes.Client, id string, p libcontainerdtypes.Process) {
  	if p != nil {
  		if _, _, err := p.Delete(ctx); err != nil && !errdefs.IsNotFound(err) {
  			logrus.WithError(err).WithField("id", id).Error("failed to delete plugin task from containerd")
  		}
  	} else {
  		if _, _, err := cli.DeleteTask(ctx, id); err != nil && !errdefs.IsNotFound(err) {
  			logrus.WithError(err).WithField("id", id).Error("failed to delete plugin task from containerd")
  		}
  	}
  
  	if err := cli.Delete(ctx, id); err != nil && !errdefs.IsNotFound(err) {
  		logrus.WithError(err).WithField("id", id).Error("failed to delete plugin container from containerd")
  	}
  }
docs: // deleteTaskAndContainer deletes plugin task and then plugin container from containerd