SharePoint Workflow Extensions Kit

Delete directory

This activity deletes the specified directory and, if indicated, any subdirectories and files in the directory.

The path parameter is not case-sensitive.

If the Remove subdirectories and files is Yes, the user must have write permission for the current directory as well as for all subdirectories.

The behavior of this method differs slightly when deleting a directory that contains a reparse point, such as a symbolic link or a mount point. If the reparse point is a directory, such as a mount point, it is unmounted and the mount point is deleted. This method does not recurse through the reparse point. If the reparse point is a symbolic link to a file, the reparse point is deleted and not the target of the symbolic link.

In some cases, if you have the specified directory open in Windows Explorer, the Delete method may not be able to delete it.

SharePoint Workflow Designer Phrase

Delete the specified path directory. Remove subdirectories and file No


Parameter Description
the specified path The directory path to create.
Remove subdirectories and file Yes to remove directories, subdirectories, and files in path; otherwise, No.