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.

Delete Task 

Deletes the specified files.

The following table describes the parameters of the Delete task.

Parameter Description


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.

The following example deletes the file MyApp.pdb.

<Project xmlns="">


    <Target Name="DeleteFiles">
        <Delete Files="$(AppName).pdb" />
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft