27 Dec 2022
03:10 AM
- last edited on
02 May 2023
06:15 AM
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.
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.
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 🙂