code: func (secrets *Secrets) Delete(key string) (rls *rspb.Release, err error) {
  	// fetch the release to check existence
  	if rls, err = secrets.Get(key); err != nil {
  		if apierrors.IsNotFound(err) {
  			return nil, storageerrors.ErrReleaseExists(rls.Name)
  		}
  
  		secrets.Log("delete: failed to get release %q: %s", key, err)
  		return nil, err
  	}
  	// delete the release
  	if err = secrets.impl.Delete(key, &metav1.DeleteOptions{}); err != nil {
  		return rls, err
  	}
  	return rls, nil
  }
docs: // Delete deletes the Secret holding the release named by key.