# Delete the all Subscription but get the error

**URL:** <https://community.hubspot.com/t/delete-the-all-subscription-but-get-the-error/11455>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [December 4, 2018, 4:57pm UTC](https://community.hubspot.com/t/delete-the-all-subscription-but-get-the-error/11455 "2018-12-04T16:57:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [December 4, 2018, 4:57pm UTC](https://community.hubspot.com/t/delete-the-all-subscription-but-get-the-error/11455/1 "2018-12-04T16:57:34Z")

</div>

Hello,

I have multiple subscription created.i want to delete that subscription using API  
i am Using this API

var options = {  
method: method,  
url: '[https://api.hubapi.com/webhooks/v1/‘+appId+’/subscriptions/'+subscriptionsId](https://api.hubapi.com/webhooks/v1/'+appId+'/subscriptions/'+subscriptionsId),  
headers: { ‘content-type’: ‘application/json’},  
json: true  
};

response get

Options-------------\> { method: ‘DELETE’,  
url: ‘[https://api.hubapi.com/webhooks/v1/182195/subscriptions/81739](https://api.hubapi.com/webhooks/v1/182195/subscriptions/81739)’,  
headers: { ‘content-type’: ‘application/json’ },  
json: true }

Error:

```auto
 {"status":"error","message":"Any of the listed authentication credentials are missing","correlationId":"XXXXXXX-XXX-XXXX-XXXX-XXXXXX","engagement":{"shhkey-v1":"shhkey-v1 not engaged. Shhkey not found in the request header.","oauth-token":"oauth-token not engaged. OAuth access token not found in request header.","access_token":"access_token not engaged. Token not found in query params.","hapikey":"hapikey not engaged. hapikey is not present in query params.","internal-cookie":"internal-cookie not engaged. Cookie not found in the request.","app-cookie":"app-cookie not engaged. App cookie is not present on the request.","legacy-app-cookie":"legacy-app-cookie not engaged. Auth cookie is not present in the request."},"requestId":"6e50b2a62295a5aa76f8a78cacb6387b"}

```

please reply asap

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [December 4, 2018, 5:31pm UTC](https://community.hubspot.com/t/delete-the-all-subscription-but-get-the-error/11455/2 "2018-12-04T17:31:23Z")

</div>

hello,

I changes some in api and try once again but got the same error…

```auto
var options = {
 method: method,
 url: 'https://api.hubapi.com/webhooks/v1/'+appId+'/subscriptions/'+subscriptionsId,
 headers: { 'content-type': 'application/json','Authorization':'Bearer ' + authToken},
 json: true 
 };

```

I send the api

Thanks

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [December 5, 2018, 5:26pm UTC](https://community.hubspot.com/t/delete-the-all-subscription-but-get-the-error/11455/3 "2018-12-05T17:26:11Z")

</div>

Hi [@avinash](https://community.hubspot.com/u/avinash),

Webhook subscriptions are set up for a [HubSpot app](https://developers.hubspot.com/docs/faq/how-do-i-create-an-app-in-hubspot), not individual accounts, so you cannot use an OAuth token to delete them. You must use your developer account’s API key in the `hapikey` parameter.

[![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/5/f5fe51f96a06568de62927123d1b06d62ca7fb2d.jpeg)

Developer API Key.jpg1638x174 33.9 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/9/946ad5d65a2676f120f057ede8f0ecb561890e4c.jpeg](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/9/946ad5d65a2676f120f057ede8f0ecb561890e4c.jpeg))

For example:

`https://api.hubapi.com/webhooks/v1/'+appId+'/subscriptions/'+subscriptionId'?hapikey='+your_developer_api_key'`
