Recursively delete all folders starting with

后端 未结 5 719
礼貌的吻别
礼貌的吻别 2021-02-05 20:24

I need to write a command in a .bat file that recursively deletes all the folders starting with a certain string. How may I achieve this ?

5条回答
  •  Happy的楠姐
    2021-02-05 21:03

    rm -rf -- "Directory name"

    Ex : rm -rf -- "-2096378"

    Above command will deletes the folders/directories starting with - or wildcard characters

提交回复
热议问题