directoryDelete
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
Argument Reference
path string Required
Absolute path of the directory to be deleted. Alternatively, you can specify IP address, as in the following example:
DirectoryDelete("//12.3.123.123/c_drive/test");. recurse boolean
Default: false
false
If true, the directory and the sub-directories are deleted. If the directory (being deleted) has sub-directories and you set
recurse to false, an exception occurs. Examples Sample code invoking the directoryDelete function
<cfset delDirectory = "someDirPath" />
<cfset recurse = true />
<cfset directoryDelete(delDirectory,recurse)>
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/directorydelete