service/pki/service.go
func (s *service) Delete(clusterID string) error {
	// Create a client for the system backend configured with the Vault token
	// used for the current cluster's PKI backend.
	sysBackend := s.VaultClient.Sys()

	// Unmount the PKI backend, if it exists.
	mounted, err := s.IsMounted(clusterID)
	if err != nil {
		return microerror.Mask(err)
	}
	if mounted {
		err = sysBackend.Unmount(s.MountPKIPath(clusterID))
		if err != nil {
			return microerror.Mask(err)
		}
	}

	return nil
}
func (s *service) Delete(clusterID string) error {
	// Create a client for the system backend configured with the Vault token
	// used for the current cluster's PKI backend.
	sysBackend := s.VaultClient.Sys()

	// Unmount the PKI backend, if it exists.
	mounted, err := s.IsMounted(clusterID)
	if err != nil {
		return microerror.Mask(err)
	}
	if mounted {
		err = sysBackend.Unmount(s.MountPKIPath(clusterID))
		if err != nil {
			return microerror.Mask(err)
		}
	}

	return nil
}
// PKI management.