protected function removeStaticFiles(string $entryIdentifier): bool
    {
        $fileName = $this->getCacheFilename($entryIdentifier);
        $dispatchArguments = [
            'entryIdentifier' => $entryIdentifier,
            'fileName' => $fileName,
            'files' => [
                PathUtility::pathinfo($fileName, PATHINFO_DIRNAME) . '/.htaccess',
            ],
        ];

        GeneralUtility::makeInstance(MetaGenerator::class)->remove($entryIdentifier, $fileName);

        $dispatched = $this->dispatch('removeStaticFiles', $dispatchArguments);
        $files = $dispatched['files'];
        $removeService = GeneralUtility::makeInstance(RemoveService::class);
        foreach ($files as $file) {
            if (false === $removeService->removeFile($file)) {
                return false;
            }
        }

        return true;
    }