function drush_delete_tmp_dir

8.0.x filesystem.inc drush_delete_tmp_dir($dir)
6.x filesystem.inc drush_delete_tmp_dir($dir)
7.x filesystem.inc drush_delete_tmp_dir($dir)
5.x filesystem.inc drush_delete_tmp_dir($dir)
master filesystem.inc drush_delete_tmp_dir($dir)

Deletes the provided file or folder and everything inside it. This function explicitely tries to delete read-only files / folders.

Parameters

$dir: The directory to delete

Return value

FALSE on failure, TRUE if everything was deleted

Related topics

File

includes/filesystem.inc, line 193
Filesystem utilities.

Code

function drush_delete_tmp_dir($dir) {
  return drush_delete_dir($dir, TRUE);
}