Search code examples
azureazure-devopsdevopsazure-deployment

Delete files in the drop location


I am trying to delete the folder with name "repro" and its contents in my build drop location. I have configured my delete files steps as below

Source Folder: $(BuildDropLocation)\$(BuildNumber)\CTrest\lime

Contents:

**/repro/*

enter image description here

repro folder resides here $(BuildDropLocation)\$(BuildNumber)\CTrest\lime\version\package\code**repro**..

Is there something that I am missing here?


Solution

  • Here is the doc for the command: Delete Files task. Examples of contents:

    **/temp/* deletes all files in any sub-folder named temp.

    **/temp* deletes any file or folder with a name that begins with temp.

    I think, **/repro* will be more suitable in your case.