Deletes on-disk or in-memory directory at the given path. NOTE: Ensure that you have the required permissions to run this function.
directoryDelete(path[, recurse])
→ returns void
DirectoryDelete("//12.3.123.123/c_drive/test");
.
false
recurse
to false, an exception occurs.
<cfset delDirectory = "someDirPath" />
<cfset recurse = true />
<cfset directoryDelete(delDirectory,recurse)>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.