Classes/Service/RemoveService.php
public function removeDirs()
    {
        foreach ($this->removeDirs as $removeDir) {
            GeneralUtility::rmdir($removeDir, true);
        }
        $this->removeDirs = [];
    }
public function removeDirs()
    {
        foreach ($this->removeDirs as $removeDir) {
            GeneralUtility::rmdir($removeDir, true);
        }
        $this->removeDirs = [];
    }
public function removeDirs ( ) { foreach ( $ this -> removeDirs as $ removeDir ) { GeneralUtility :: rmdir ( $ removeDir , true ) ; } $ this -> removeDirs = [ ] ; }
Finally remove the dirs.
Finally remove the dirs .