public function purge()
    {
        foreach ($GLOBALS['TL_PURGE']['folders']['metamodels_assets']['affected'] as $folderName) {
            // Purge the folder
            $folder = new \Folder($folderName);
            $folder->purge();
        }

        /** @var EventDispatcherInterface $dispatcher */
        $dispatcher = $GLOBALS['container']['event-dispatcher'];
        $dispatcher->dispatch(
            ContaoEvents::SYSTEM_LOG,
            new LogEvent('Purged the MetaModels assets', __METHOD__, TL_CRON)
        );
    }