Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

TS.DELETE

Last updated
TS.DELETE key
Group
Time series
Complexity
O(N), N being the samples
Arity
2 (exactly, counting the command name)
Flags
write, slow
Keys
first 1, last 1, step 1
HotKV Cloud
Performance and Scale
On-Premise
requires the time-series license feature

TS.DELETE removes the time series key with all its samples, labels and the TS.DOWNSAMPLE rules it is the source of. Rules on other series that write into it stay in place but have nothing to write to until a series with that name is created again.

Use TS.DELETE, not DEL: time series are not keys in the keyspace.

Case RESP2 RESP3
Deleted Simple string OK Simple string OK

Error replies: ERR series not found, and NOLICENSE ... without the time-series license feature.

127.0.0.1:6379> TS.CREATE temp:kitchen
OK
127.0.0.1:6379> TS.DELETE temp:kitchen
OK
127.0.0.1:6379> TS.DELETE temp:kitchen
(error) ERR series not found

HotKV-only command. In RedisTimeSeries, TS.DEL deletes samples in a range and DEL deletes the series; in HotKV, TS.DELETE deletes the whole series.

TS.CREATE, TS.LIST, TS.RETENTION