private function removeFolder(FolderInterface $folder)
    {
        $em = $this->getEntityManager();
        $em->remove($folder);
        $em->flush();
    }
private function removeFolder(FolderInterface $folder)
    {
        $em = $this->getEntityManager();
        $em->remove($folder);
        $em->flush();
    }
private function removeFolder ( FolderInterface $ folder ) { $ em = $ this -> getEntityManager ( ) ; $ em -> remove ( $ folder ) ; $ em -> flush ( ) ; }
Removes the folder.

@param FolderInterface $folder
Removes the folder .