Bitrix Site Manager

DeleteDirFilesEx

bool
DeleteDirFilesEx(
 string path
)

The function DeleteDirFilesEx recursively deletes the directory or file specified. Returns true on success. 

Parameters

ParameterDescription
path Path to the directory or file which is to be deleted, relative to the root.

See Also

Example



<?
// delete directory /temp1/ ant all its content
DeleteDirFilesEx("/temp1");
?>