The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RemoveDir Task 

Removes the specified directories and all of its files and subdirectories.

The following table describes the parameters of the RemoveDir task.

Parameter Description


Required ITaskItem[] parameter.

Specifies the directories to delete.


Optional ITaskItem[] output parameter.

Contains the directories that were successfully deleted.

The following example removes the directories specified by the OutputDirectory and DebugDirectory properties. These paths are treated as relative to the project directory.

<Project xmlns="">


    <Target Name="RemoveDirectories">
            Directories="$(OutputDirectory);$(DebugDirectory)" />

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft