# Provisioning - DELETE not working

**URL:** <https://community.hubspot.com/t/provisioning-delete-not-working/49917>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [January 17, 2022, 10:16pm UTC](https://community.hubspot.com/t/provisioning-delete-not-working/49917 "2022-01-17T22:16:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WDeneys](https://avatars.discourse-cdn.com/v4/letter/w/a6a055/32.png) [@WDeneys](https://community.hubspot.com/u/WDeneys)\
**Post date:** [January 17, 2022, 10:16pm UTC](https://community.hubspot.com/t/provisioning-delete-not-working/49917/1 "2022-01-17T22:16:35Z")

</div>

I’m able to retrive information without incident, but DELETE is failing. It seems like a simple enough call 🙂

The terminated user from the GET /users call:

\<snip\>

{  
“id”: “11004878”,  
“email”: “[redacted@redacted.com](mailto:redacted@redacted.com)”,  
“primaryTeamId”: “6078721”  
}

\</snip\>

I then try calling

DELETE [https://api.hubapi.com/settings/v3/users/11004878?idProperty=USER\_ID](https://api.hubapi.com/settings/v3/users/11004878?idProperty=USER_ID)

(I tried not providing idProperty initially) and it fails with

“status\_code”: 415,  
“response”: “”,  
“message”: “API error”

which is not helpful. I have the following scopes in my oAuth ‘private app’ (that was nice to setup by the way very simple kudos to whoever did that)

settings.users.teams.write

settings.users.teams.read

settings.users.read

settings.users.write

Full headers in case the ray id or some other parameter helps:

“headers”: {  
“date”: “Mon, 17 Jan 2022 22:02:43 GMT”,  
“transfer-encoding”: “chunked”,  
“connection”: “close”,  
“cf-ray”: “6cf2de92b8af255c-SJC”,  
“strict-transport-security”: “max-age=31536000; includeSubDomains; preload”,  
“cf-cache-status”: “DYNAMIC”,  
“access-control-allow-credentials”: “false”,  
“expect-ct”: “max-age=604800, report-uri=\”[[https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\\](https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct%5C%5C)]([https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\](https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct%5C))“”,  
“x-hubspot-correlation-id”: “44a7b73f-1729-48e6-9f5c-d72eb89a6b1e”,  
“report-to”: “{\“endpoints\”:[{\“url\”:\“https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=VosvA%2Boj5zkMBnEkERKiOxTaVxkTXzY3sOOKPj1Ogd4JYced2zf5ukfnMRFNWaLlYbuQeX3oVvsXXRIzrIKprV3Ryr3xUeNuFB9B9PXP8QtzDHTUxxtHoJd5wVFVysIr\”}],\“group\”:\“cf-nel\”,\“max\_age\”:604800}”,  
“nel”: “{\“success\_fraction\”:0.01,\“report\_to\”:\“cf-nel\”,\“max\_age\”:604800}”,  
“server”: “cloudflare”,  
“alt-svc”: “h3=\”:443\“; ma=86400, h3-29=\”:443\“; ma=86400”  
}

I need to be able to update profile data other than the role and team which does not exist yet by the look of it - any idea if that is a matter of time or do I need to submit requests or something aka nobody is working on it yet?

---

<div class="post-metadata">

**Author:** ![WDeneys](https://avatars.discourse-cdn.com/v4/letter/w/a6a055/32.png) [@WDeneys](https://community.hubspot.com/u/WDeneys)\
**Post date:** [January 17, 2022, 10:19pm UTC](https://community.hubspot.com/t/provisioning-delete-not-working/49917/2 "2022-01-17T22:19:36Z")

</div>

Edit - forgot to mention - I also tried using the email address in the path and setting idProperty=EMAIL with the same result. Help!

---

<div class="post-metadata">

**Author:** ![WDeneys](https://avatars.discourse-cdn.com/v4/letter/w/a6a055/32.png) [@WDeneys](https://community.hubspot.com/u/WDeneys)\
**Post date:** [January 17, 2022, 11:35pm UTC](https://community.hubspot.com/t/provisioning-delete-not-working/49917/3 "2022-01-17T23:35:19Z")

</div>

Updating in case this helps others: The DELETE worked when I passed an empty body. Weird.

Second - to change a role, you also need settings.billing.write so if you are doing provisioning you will need to add that from the get-go.
