Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Other functions

Remove directory (removeDir)

Scroll Prev Top Next More

This function allows you to delete a directory with all contained subdirectories and files.

Parameter

Type

Description

$path

string

Complete directory path

The function returns true in case it was successful, otherwise false.

Example:

// Deleting the directory c:\temp\test incl. all subdirectories and contained files

$this->removeDir('c:\temp\test');