27 Dec 2022 11:10 AM - last edited on 02 May 2023 02:15 PM by educampver
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!
Solved! Go to Solution.
28 Dec 2022 09:13 AM
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.
26 Jan 2023 11:51 AM
Hi, a "delete everything" operation has been added this sprint! (not yet available on demo dev but should be there soon, please stay tuned)
16 Mar 2023 10:14 AM
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 🙂