Search for deleteRecursive

  1. Search 7.x for deleteRecursive
  2. Search 9.5.x for deleteRecursive
  3. Search 10.3.x for deleteRecursive
  4. Search 11.x for deleteRecursive
  5. Other projects
Title Object type File name Summary
Composer::deleteRecursive function core/lib/Drupal/Core/Composer/Composer.php Helper method to remove directories and the files they contain.
FileDeleteRecursiveTest class core/tests/Drupal/KernelTests/Core/File/FileDeleteRecursiveTest.php Tests the unmanaged file delete recursive function.
FileDeleteRecursiveTest.php file core/tests/Drupal/KernelTests/Core/File/FileDeleteRecursiveTest.php
FileDeleteRecursiveTest::testDirectory function core/tests/Drupal/KernelTests/Core/File/FileDeleteRecursiveTest.php Try deleting a directory with some files.
FileDeleteRecursiveTest::testEmptyDirectory function core/tests/Drupal/KernelTests/Core/File/FileDeleteRecursiveTest.php Try deleting an empty directory.
FileDeleteRecursiveTest::testSingleFile function core/tests/Drupal/KernelTests/Core/File/FileDeleteRecursiveTest.php Delete a normal file.
FileDeleteRecursiveTest::testSubDirectory function core/tests/Drupal/KernelTests/Core/File/FileDeleteRecursiveTest.php Try deleting subdirectories with some files.
FileSystem::deleteRecursive function core/lib/Drupal/Core/File/FileSystem.php Deletes all files and directories in the specified filepath recursively.
FileSystemDeprecationTest::testDeprecatedUnmanagedFileDeleteRecursive function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_unmanaged_delete_recursive() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystemInterface::deleteRecursive(). See https://www.drupal.org/node/3006851.
FileSystemInterface::deleteRecursive function core/lib/Drupal/Core/File/FileSystemInterface.php Deletes all files and directories in the specified filepath recursively.
QuickStartTest::fileUnmanagedDeleteRecursive function core/tests/Drupal/Tests/Core/Command/QuickStartTest.php Deletes all files and directories in the specified path recursively.
RemoteFileDeleteRecursiveTest class core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php Tests the unmanaged file delete recursive function.
RemoteFileDeleteRecursiveTest.php file core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php
RemoteFileDeleteRecursiveTest::$classname property core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php A fully-qualified stream wrapper class name to register for the test.
RemoteFileDeleteRecursiveTest::$modules property core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php Modules to enable.
RemoteFileDeleteRecursiveTest::$scheme property core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php A stream wrapper scheme to register for the test.
RemoteFileDeleteRecursiveTest::setUp function core/tests/Drupal/KernelTests/Core/File/RemoteFileDeleteRecursiveTest.php
TestSiteTearDownCommand::fileUnmanagedDeleteRecursive function core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php Deletes all files and directories in the specified path recursively.

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