# Problem calling delete records API fro within an app

**URL:** <https://community.dynatrace.com/t/problem-calling-delete-records-api-fro-within-an-app/54355>\
**Category:** Developer Q&A Forum\
**Created:** [December 10, 2025, 2:36pm UTC](https://community.dynatrace.com/t/problem-calling-delete-records-api-fro-within-an-app/54355 "2025-12-10T14:36:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnacreek](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@johnacreek](https://community.dynatrace.com/u/johnacreek)\
**Post date:** [December 10, 2025, 2:36pm UTC](https://community.dynatrace.com/t/problem-calling-delete-records-api-fro-within-an-app/54355/1 "2025-12-10T14:36:49Z")

</div>

We have an app that creates Events that we use for masking Problems.&nbsp; 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.

---

<div class="post-metadata">

**Author:** ![StefanSchinwald](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefanschinwald/32/39928_2.png) [@StefanSchinwald](https://community.dynatrace.com/u/StefanSchinwald)\
**Post date:** [December 11, 2025, 9:16am UTC](https://community.dynatrace.com/t/problem-calling-delete-records-api-fro-within-an-app/54355/2 "2025-12-11T09:16:57Z")

</div>

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. (&nbsp;[Record Deletion in Grail Doc](https://docs.dynatrace.com/docs/discover-dynatrace/platform/grail/organize-data/record-deletion-in-grail)&nbsp;)  
There is also a APP to support by apply those deletions called&nbsp;&nbsp;[Sensitive Data Center.](https://www.dynatrace.com/hub/detail/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

---

<div class="post-metadata">

**Author:** ![dani\_coll](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dani_coll/32/33669_2.png) [@dani\_coll](https://community.dynatrace.com/u/dani_coll)\
**Post date:** [December 11, 2025, 9:20am UTC](https://community.dynatrace.com/t/problem-calling-delete-records-api-fro-within-an-app/54355/3 "2025-12-11T09:20:47Z")

</div>

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.

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

```

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