Skip to content

@142vip.fairy cli.函数.deleteByPatterns

mmdapl edited this page Oct 8, 2026 · 1 revision

API 参考 / @142vip/fairy-cli / deleteByPatterns

函数: deleteByPatterns()

deleteByPatterns(patterns, options?): Promise<string[]>

定义于: packages/fairy-cli/src/utils/clean-path.util.ts:115

按 glob 规则删除文件或目录(Node 内置 fs.rm,无第三方 del 依赖)。

参数

patterns

string[]

options?

DeleteByPatternsOptions = {}

返回

Promise<string[]>

Clone this wiki locally