W3cubDocs

/Drupal 8

public function FileStorage::deleteAll

public FileStorage::deleteAll()

Removes all files in this bin.

Overrides PhpStorageInterface::deleteAll

File

core/lib/Drupal/Component/PhpStorage/FileStorage.php, line 207

Class

FileStorage
Stores the code as regular PHP files.

Namespace

Drupal\Component\PhpStorage

Code

public function deleteAll() {
  return $this->unlink($this->directory);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!PhpStorage!FileStorage.php/function/FileStorage::deleteAll/8.1.x