protected function cleanWorkspace() { $filesystem = new Filesystem(); $path = $this->getWorkspacePath(); if (file_exists($path)) { $filesystem->remove($path); } }