$path = "/path/to/directory"; ilUtil::delDir($path);In this example, the `delDir` function is used to delete the directory and its contents located at the path specified by `$path`. This function is a part of the ILIAS library, which is a package of PHP code that is used to power the ILIAS e-learning platform.