function JsCollectionOptimizerLazy::deleteAll

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php \Drupal\Core\Asset\JsCollectionOptimizerLazy::deleteAll()

Overrides AssetCollectionOptimizerInterface::deleteAll

File

core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php, line 148

Class

JsCollectionOptimizerLazy
Optimizes JavaScript assets.

Namespace

Drupal\Core\Asset

Code

public function deleteAll() {
    $this->fileSystem
        ->deleteRecursive('assets://js');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.