-1

I have a list of files and folders inside a directory. For example, .jazz or .project file after a checkout.

I am using batch script currently, May I know how to remove .jazz or .project files from my Jenkins workspace ?

albert
  • 8,285
  • 3
  • 19
  • 32
Kivi
  • 485
  • 1
  • 9
  • 26

1 Answers1

-2

Just like @Squashman said in the comments, you can use the wildcard symbol * combined with anything.

So in your case it is: del /f ".jazz*" Use del /f /s ".jazz*" if there are directories too.

See this documentation for more information.

Aynos
  • 288
  • 1
  • 13