bool deleteDirectory(string dirPath)

Deletes a directory, and all files in it

Security

Trust Level Required: Full Trust

Parameters

Name Description
dirPath string
The path to the directory

Return

True on success, and false if the directory did not exist or an error occurred

Examples


if (KioFileIO.getDirectoryDetails('/home/kiosk/Projects').exists)
	KioFileIO.deleteDirectory('/home/kiosk/Projects');

Requirements

KioWare OS (Linux®) version 1.0 or greater.


Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.