How to get logs of item deletion past TTL in CosmosDB?
Catherine Du
25
Reputation points Microsoft Employee
Hello team,
I'd like to know the best way to monitor that the items in the container are getting properly deleted past TTL.
I've come across the Change feed's All versions and deletes mode where I can trigger an Azure functions to continuously pull these changes and check for "timeToLiveExpired" in the response.
This seems to be an overkill for the sole purpose of validating deletion. Besides the All Versions and deletes mode is still in Preview.
Is there any other approach or more straightforward solution that we can validate items are being properly cleaned up?
Best,
Catherine
Sign in to answer