TS.DELETE
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.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Deleted | Simple string OK |
Simple string OK |
Error replies: ERR series not found, and NOLICENSE ... without the
time-series license feature.
Examples
Section titled “Examples”127.0.0.1:6379> TS.CREATE temp:kitchenOK127.0.0.1:6379> TS.DELETE temp:kitchenOK127.0.0.1:6379> TS.DELETE temp:kitchen(error) ERR series not foundCompatibility
Section titled “Compatibility”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.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.