This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.
Deletes the specified files.
The following table describes the parameters of the
Specifies the files that were successfully deleted.
Specifies the files to delete.
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <AppName>MyApp</AppName> </PropertyGroup> <Target Name="DeleteFiles"> <Delete Files="$(AppName).pdb" /> </Target> </Project>