public function deletePath(FilesystemInterface $filesystem, $path) { $success = false; try { $success = $filesystem->delete($path); } catch (FileNotFoundException $e) { // TODO: log this? } return $success; }