# EHRbase Delete Composition - 403 Forbidden

**URL:** https://discourse.openehr.org/t/ehrbase-delete-composition-403-forbidden/5908
**Category:** Platform
**Created:** [12 November 2024 11:51 UTC](https://discourse.openehr.org/t/ehrbase-delete-composition-403-forbidden/5908 "2024-11-12T11:51:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Madhurima](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@Madhurima](https://discourse.openehr.org/u/Madhurima)
#### Post date: [12 November 2024 11:51 UTC](https://discourse.openehr.org/t/ehrbase-delete-composition-403-forbidden/5908/1 "2024-11-12T11:51:34Z")

</div>

Hi, I am trying to implement delete composition on my application using the delete composition endpoint :  
{{host}}/ehrbase/rest/openehr/v1/ehr/{{:ehrId}}/composition/{{:compositionId}}

While hitting the endpoint from Postman the composition is getting deleted successfully, But while I am trying to hit the endpoint from my application frontend, I am getting 403 Forbidden with no other details.

Example of the delete call:  
[https://ehrbase002.ey.com/ehrbase/rest/openehr/v1/ehr/8f9b250f-b90b-438b-8191-82d9dd079223/composition/f668f73b-da0b-4a54-a46f-f598f3a2cf01::local.ehrbase.org::1](https://ehrbase002.ey.com/ehrbase/rest/openehr/v1/ehr/8f9b250f-b90b-438b-8191-82d9dd079223/composition/f668f73b-da0b-4a54-a46f-f598f3a2cf01::local.ehrbase.org::1)

Any idea of what am I doing wrong?

---

<div class="post-metadata">

### Author: ![jake.smolka](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jake.smolka/32/2870_2.png) [@jake.smolka](https://discourse.openehr.org/u/jake.smolka)
#### Post date: [12 November 2024 13:49 UTC](https://discourse.openehr.org/t/ehrbase-delete-composition-403-forbidden/5908/2 "2024-11-12T13:49:15Z")

</div>

It sounds like your application is not using (the correct) credentials. This is highly depending on your specific setup, application implementation and system + auth architecture.  
With a successful Postman example setup in place, make sure to recreate the auth setup from Postman within your application.
