Removes the files and directories matching a set of glob patterns, with their whole content.
Runs on the command line as ush rm <pattern>....
Patterns matching nothing are ignored, so that the same command can run again on an already clean tree.
Each removed file or directory is printed on stdout once as rm <path>, relative to the current folder. Matches
inside a removed directory go along with it and are not listed, even where a pattern selects them explicitly.
Parameters
...patterns: readonlystring[]
The glob patterns selecting the files and directories to remove
Returns void
Example
Removing build outputs, from an npm script:
ushrmdistdocs'src/**/*.tsbuildinfo'
Patterns are quoted so that they reach the tool unexpanded, as shells differ in their glob support.
Removes the files and directories matching a set of glob patterns, with their whole content.
Runs on the command line as
ush rm <pattern>....Patterns matching nothing are ignored, so that the same command can run again on an already clean tree.
Each removed file or directory is printed on stdout once as
rm <path>, relative to the current folder. Matches inside a removed directory go along with it and are not listed, even where a pattern selects them explicitly.