# Delete directory

Source: [https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/file-activities/delete-directory/](https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/file-activities/delete-directory/)
Product: Virto Workflow Automation Web Part
Updated: 2026-08-12


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

![Delete directory activity settings with path and remove subdirectories option in the SharePoint Workflow Designer](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/delete_directory_1.png)

The **path** parameter is not case-sensitive.

If **Remove subdirectories and files** is set to **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, not the target of the symbolic link.

## **SharePoint Workflow Designer Phrase**

Delete **the specified path** directory. Remove subdirectories and file: **No**

**Parameters**


| Parameter | Description |
|---|---|
| the specified path | The directory path to delete. |
| Remove subdirectories and files | **Yes** to remove directories, subdirectories, and files in the path; otherwise, **No**. |

