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 ?
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 ?
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.