@metreeca/rack - v0.6.0
    Preparing search index...

    Function rm

    • 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: readonly string[]

        The glob patterns selecting the files and directories to remove

      Returns void

      Removing build outputs, from an npm script:

      ush rm dist docs 'src/**/*.tsbuildinfo'
      

      Patterns are quoted so that they reach the tool unexpanded, as shells differ in their glob support.

      TypeError If no pattern is provided

    Index
    usage: string

    The command line synopsis of rm, printed by ush rm --help.