Developer Q&A Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem calling delete records API fro within an app

johnacreek
Frequent Guest

We have an app that creates Events that we use for masking Problems.  We need the ability to remove those events via endpoint '/platform/storage/record/v1/delete:execute', however that is not part of the SDK and we cannot figure out a way to properly call that endpoint from within our application.

2 REPLIES 2

StefanSchinwald
Dynatrace Promoter
Dynatrace Promoter

Hello Johna.
The record level deletion api's intention is to delete PII / sensitive data that was ingested. This is why there are some limits to accessing/usability of this API. ( Record Deletion in Grail Doc )
There is also a APP to support by apply those deletions called  Sensitive Data Center.

For your use case you could consider writing those events to a separate bucket and utilize the retention period to auto delete older events.

Hope that helps
BR

dani_coll
Dynatrace Helper
Dynatrace Helper

Hi johnacreek,

If the endpoint is not part of the SDK you can still call it using a fetch function.

You don't even need to worry about the authentication since it's handled automatically when you call the endpoint within your app ui or app function.

 
await fetch('/platform/storage/record/v1/delete:execute')

 

And I believe your app and user should have the storage:records:delete permission scopes

Featured Posts