cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bulk remove keys from the Persistence Store

david_petroni
Dynatrace Enthusiast
Dynatrace Enthusiast

Hello,

when using https://developer.dynatrace.com/develop/data/state/, we found out that we sometimes need to remove multiple keys at once - most of the times, related to the modification date.

We are right now querying for all the keys with some filter, and then we're removing them one by one (or better, in junks using multiple promises at once).

Is there a better option?

Thanks!

3 REPLIES 3

christian_barth
Dynatrace Helper
Dynatrace Helper

Hi David, 

To my knowledge, there's no better option for now. 
I'll double-check this with the responsible team when they return from winter vacation. 

michael_k
Dynatrace Advisor
Dynatrace Advisor

Hi, a "delete everything" operation has been added this sprint! (not yet available on demo dev but should be there soon, please stay tuned)

Hello Michael, FYI, we would like to have a delete using a filter, not a delete everything operation. So basically something with this signature:

deleteAppStates(config: {
  filter?: string;
  abortSignal?: AbortSignal;
}): Promise<void>

The option to remove everything is not really useful for us, but thanks for letting me know 🙂

Featured Posts