code: func (s *Store) DeleteTask(ctx context.Context, id platform.ID) (deleted bool, err error) {
  	encodedID, err := id.Encode()
  	if err != nil {
  		return false, err
  	}
  	err = s.db.Batch(func(tx *bolt.Tx) error {
  		b := tx.Bucket(s.bucket)
  		if check := b.Bucket(tasksPath).Get(encodedID); check == nil {
  			return backend.ErrTaskNotFound
  		}
  		if err := b.Bucket(taskMetaPath).Delete(encodedID); err != nil {
  			return err
  		}
  		if err := b.Bucket(tasksPath).Delete(encodedID); err != nil {
  			return err
  		}
  		user := b.Bucket(userByTaskID).Get(encodedID)
  		if len(user) > 0 {
  			if err := b.Bucket(usersPath).Bucket(user).Delete(encodedID); err != nil {
  				return err
  			}
  		}
  		if err := b.Bucket(userByTaskID).Delete(encodedID); err != nil {
  			return err
  		}
  		if err := b.Bucket(nameByTaskID).Delete(encodedID); err != nil {
  			return err
  		}
  
  		org := b.Bucket(orgByTaskID).Get(encodedID)
  		if len(org) > 0 {
  			if err := b.Bucket(orgsPath).Bucket(org).Delete(encodedID); err != nil {
  				return err
  			}
  		}
  		return b.Bucket(orgByTaskID).Delete(encodedID)
  	})
  	if err != nil {
  		if err == backend.ErrTaskNotFound {
  			return false, nil
  		}
  		return false, err
  	}
  	return true, nil
  }
docs: // DeleteTask deletes the task.