code: public void removeWorkspace(String workspaceName) throws RepositoryException
     {
        if (!canRemoveWorkspace(workspaceName))
  
           throw new RepositoryException("Workspace " + workspaceName + " in use. If you want to "
              + " remove workspace close all open sessions");
  
        internalRemoveWorkspace(workspaceName);
     }
docs: {@inheritDoc}