cfclient.file.removeDirectory

Deleting a directory

You can delete a directory by using the removeDirectory function as shown in the following example:

<cfset removeresponse = cfclient.file.removeDirectory(“myNewDir”)>

Method summary

removeDirectory(dirPath,recurse) - Delete specified directory

  • returns – a boolean to indicate the success of operation
  • params
    • dirPath – The absolute or relative path to the directory that needs to be deleted (including the directory name).
    • recurse - boolean to indicate whether the directory should be removed recursively.

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online