This command deletes completed build(s) and/or related artifacts. Syntax - TfsBuild delete /collection:teamProjectCollectionUrl ...

This command deletes completed build(s) and/or related artifacts.

Syntax -
TfsBuild delete /collection:teamProjectCollectionUrl
                /buildDefinition:definitionSpec buildNumber [buildNumber ...]
                [/deleteOptions:deleteOptions] [/noPrompt] [/silent] [/preview]
   or
TfsBuild delete /collection:teamProjectCollectionUrl buildUri [buildUri ...]
   or 
TfsBuild delete teamProjectCollectionUrl teamProject buildNumber
                [buildNumber ...]
   or
TfsBuild delete /collection:teamProjectCollectionUrl /dateRange:[date]~[date]
                /buildDefinition:definitionSpec
   or
TfsBuild delete /collection:teamProjectCollectionUrl /dateRange:[date]~[date]
                teamProject

teamFoundationServer    The Team Foundation Server used for build(s).
definitionSpec          The specification of the build definition(s) containing
                        the build(s) to be deleted. Wildcards are supported.
buildNumber             The build number in the Team Project to be deleted.
                        Wildcards are supported.
buildUri                The Uri of the build to be deleted.
teamProject             The team project used for build(s).
date                    A date, formatted in any .NET parsable format.
[/deleteOptions]        Specifies the build artifacts for deletion. Valid
                        options include: All, Details, DropLocation, Label,
                        TestResults, and Symbols. Multiple options can be
                        specified separated by a comma. Specifying All or
                        Details marks the specified build(s) as deleted and
                        hides them in the Team Foundation Client. The delete
                        command may be used multiple times on the same build(s)
                        if different options are specified with this flag.
[/noPrompt]             Do not prompt while deleting the build(s).
[/silent]               Do not write output to the console while deleting. 
                        Implies /noPrompt.
[/preview]              Preview the builds selected for deletion. Does not
                        delete any builds.
English
English (United States)
Español (España)
Spanish (Spain)
Français (France)
French (France)
italiano
Italian
日本語
Japanese
한국어
Korean
Русский
Russian