NKZ
NKZ

Reputation: 103

How to delete single measuring point structure and the historical data in Apache IoTDB?

Can the data and structure of a measuring point be deleted separately from Apache IoTDB? The original datatype of this measurement point is int32, and I want to change it to double, so I want to delete this measuring point and the historical data. I tried delete from root.a.b.status where time < now() command, but seems like this just delete the data, and this measuring point still exists. Anyone know what should I do?

Upvotes: 0

Views: 33

Answers (2)

Marcos_Zyk
Marcos_Zyk

Reputation: 354

You can use delete timeseries root.db.device.timeseriesName to remove certain column, therefore removing certain measuring point in Apache IoTDB.

Upvotes: 0

Grinsekatze
Grinsekatze

Reputation: 1

I'm not used to IoTDB but it looks like this:

IoTDB> delete timeseries root.ln.wf01.wt01.status

could do the job.

It is described there: https://iotdb.apache.org/UserGuide/V1.1.x/Operate-Metadata/Timeseries.html#create-aligned-timeseries

Good luck!

Upvotes: 0

Related Questions