code: func (b *Local) DeleteWorkspace(name string) error {
  	// If we have a backend handling state, defer to that.
  	if b.Backend != nil {
  		return b.Backend.DeleteWorkspace(name)
  	}
  
  	if name == "" {
  		return errors.New("empty state name")
  	}
  
  	if name == backend.DefaultStateName {
  		return errors.New("cannot delete default state")
  	}
  
  	delete(b.states, name)
  	return os.RemoveAll(filepath.Join(b.stateWorkspaceDir(), name))
  }
docs: // DeleteWorkspace removes a workspace.
  //
  // The "default" workspace cannot be removed.