Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Delete Task

Deletes the specified files.

The following table describes the parameters of the Delete task.




Optional ITaskItem[] output parameter.

Specifies the files that were successfully deleted.


Required ITaskItem[] parameter.

Specifies the files to delete.


Optional Boolean parameter

If true, errors are logged as warnings. The defalut value is false.

In addition to the parameters listed above, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.

The following example deletes the file MyApp.pdb.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">


    <Target Name="DeleteFiles">
        <Delete Files="$(AppName).pdb" />
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.