Skip to main content
Answer

Delete time series SDK Python

  • May 23, 2024
  • 2 replies
  • 52 views

Pablo Palacios
Seasoned
Forum|alt.badge.img+3

Hello, how can I delete all the time series of a dataset with python sdk?

Best answer by Håkon V. Treider

You can first list all the time series in a data set, then convert them to a list of ids that you then delete:

tss = client.time_series.list(data_set_ids=123456, limit=None)
client.time_series.delete(id=tss.as_ids())

 

2 replies

Forum|alt.badge.img

You can first list all the time series in a data set, then convert them to a list of ids that you then delete:

tss = client.time_series.list(data_set_ids=123456, limit=None)
client.time_series.delete(id=tss.as_ids())

 


Pablo Palacios
Seasoned
Forum|alt.badge.img+3

You can first list all the time series in a data set, then convert them to a list ids that you then delete:

tss = client.time_series.list(data_set_ids=123456, limit=None)
client.time_series.delete(id=tss.as_ids())

thank you very much, it worked perfectly for me