DirectoryDelete

Deletes a directory

Method Signature

DirectoryDelete(path=[string], recursive=[boolean])

Arguments

Argument
Type
Required
Description
Default

path

string

true

the path of the directory to delete

recursive

boolean

true

[default:false] whether to recursively delete the directory. If falls and the directory is not empty, with throw a runtime exception

false

Examples

Tag Syntax

<bx:set delDirectory = "someDirPath" >
<bx:set recurse = true >
<bx:set directoryDelete( delDirectory, recurse ) >

Additional Examples

Run Example

directorydelete( "DirectoryPath" );

Last updated

Was this helpful?