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&gt;`

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

Reply via email to