Neos.Neos/Classes/Domain/Service/UserService.php
protected function deletePersonalWorkspace($accountIdentifier)
    {
        $userWorkspace = $this->workspaceRepository->findByIdentifier(UserUtility::getPersonalWorkspaceNameForUsername($accountIdentifier));
        if ($userWorkspace instanceof Workspace) {
            $this->publishingService->discardAllNodes($userWorkspace);
            $this->workspaceRepository->remove($userWorkspace);
        }
    }
protected function deletePersonalWorkspace($accountIdentifier)
    {
        $userWorkspace = $this->workspaceRepository->findByIdentifier(UserUtility::getPersonalWorkspaceNameForUsername($accountIdentifier));
        if ($userWorkspace instanceof Workspace) {
            $this->publishingService->discardAllNodes($userWorkspace);
            $this->workspaceRepository->remove($userWorkspace);
        }
    }
protected function deletePersonalWorkspace ( $ accountIdentifier ) { $ userWorkspace = $ this -> workspaceRepository -> findByIdentifier ( UserUtility :: getPersonalWorkspaceNameForUsername ( $ accountIdentifier ) ) ; if ( $ userWorkspace instanceof Workspace ) { $ this -> publishingService -> discardAllNodes ( $ userWorkspace ) ; $ this -> workspaceRepository -> remove ( $ userWorkspace ) ; } }
Removes all personal workspaces of the given user's account if these workspaces exist. Also removes
all possibly existing content of these workspaces.

@param string $accountIdentifier Identifier of the user's account
@return void
Removes all personal workspaces of the given user s account if these workspaces exist . Also removes all possibly existing content of these workspaces .