Hi, > So I believe it's better for `delete storage group FullPath` command to > support wildcard, which can be regarded as `delete storage group <prefixPath>`
+1, this is a good function Thanks, -- Jialin Qiao School of Software, Tsinghua University 乔嘉林 清华大学 软件学院 > -----原始邮件----- > 发件人: "谭新宇" <tan-xi...@qq.com> > 发送时间: 2020-10-30 14:04:24 (星期五) > 收件人: dev <dev@iotdb.apache.org> > 抄送: > 主题: Support `delete storage group <prefixPath>' > > Greetings, > > > Currently, it seems that the user can delete all data and timeseries: > delete timeseries root.*; > > > But this sql cann't delete all related storage groups. In addition, such an > approach would be more time-consuming than simply deleting specified storage > groups. > > So I believe it's better for `delete storage group FullPath` command to > support wildcard, which can be regarded as `delete storage group > <prefixPath>` > > For example, all sgs and data can be deleted by one sql efficiently: > delete storage group root.*; > > > This sql is useful for some users in many scenarios, such as system cleanup > during continuous testing. > > > > > I have implemented this feature and created a PR[1], you can take a review if > you are interested in it. > > > > > [1] https://github.com/apache/iotdb/pull/1881 > > > > > Best:) > > -------- > > Xinyu Tan