Contao\Controller::removeOldFeeds PHP Method

removeOldFeeds() protected method

Remove old XML files from the share directory
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Automator::purgeXmlFiles() instead.
protected removeOldFeeds ( boolean $blnReturn = false ) : array
$blnReturn boolean If true, only return the finds and don't delete
return array An array of old XML files
    protected function removeOldFeeds($blnReturn = false)
    {
        @trigger_error('Using Controller::removeOldFeeds() has been deprecated and will no longer work in Contao 5.0. Use Automator::purgeXmlFiles() instead.', E_USER_DEPRECATED);
        $this->import('Automator');
        $this->Automator->purgeXmlFiles($blnReturn);
    }