Skip to main content
Solved

Delete time series SDK Python


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())

 

View original
Did this topic help you find an answer to your question?

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
Håkon V. Treider wrote:

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

 

 


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings