Function __global->_deldir_contents

Definitions

sources/files2.php

  • Delete all the contents of a directory, and any subdirectories of that specified directory (recursively).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$dir PATH required parameter N/A N/A The pathname to the directory to delete
$default_preserve boolean False N/A N/A Whether to preserve index.html and .htaccess files (only applies to the lowest level directory)
$delete_dir_also boolean False N/A N/A Whether to delete the $dir at the end

Return

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A