# Cannot delete location scope error 4711 (empty array)

**URL:** <https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [October 4, 2024, 2:57pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594 "2024-10-04T14:57:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.leguen](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@thomas.leguen](https://devforum.zoom.us/u/thomas.leguen)\
**Post date:** [October 4, 2024, 2:57pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/1 "2024-10-04T14:57:12Z")

</div>

Hello,

We want to delete a location using the REST API, we get:

{  
“code”: 4711,  
“message”: “Invalid access token, does not contain scopes:[].”  
}

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/6/765dfe6991e3988638ffa2cce212015026fd62af.png)

Can you help us please ?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 4, 2024, 4:56pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/2 "2024-10-04T16:56:57Z")

</div>

Hi @thomas.leguen you seem to have the correct scopes [based on the documentation](https://developers.zoom.us/docs/api/rest/reference/zoom-rooms/methods/#operation/deleteAZRLocation), can you please tell me if you have the same result if you generate a new access token?

Please also confirm if you are an admin [with the permissions assigned](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0064983) to access this endpoint.

---

<div class="post-metadata">

**Author:** ![thomas.leguen](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@thomas.leguen](https://devforum.zoom.us/u/thomas.leguen)\
**Post date:** [October 7, 2024, 2:51pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/4 "2024-10-07T14:51:24Z")

</div>

Hello @gianni.zoom , yes we do regenerate new tokens and we also are admins.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 8, 2024, 4:02pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/5 "2024-10-08T16:02:11Z")

</div>

@thomas.leguen Can you please share the zm-tracking-id from the response header of the error? Please share from the most recent example within the last 5 days.

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 6, 2025, 1:17am UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/6 "2025-04-06T01:17:10Z")

</div>

@gianni.zoom I’m experiencing the same problem: I am attempting to delete a room location but I am getting the same error message mentioned by @thomas.leguen:

```auto
REQUEST:
DELETE https://api.zoom.us/v2/rooms/locations/FnsQXeE3Q3Og9kiz-i9NQQ

RESPONSE:
HTTP/1.1 400 Bad Request
{"code":4711,"message":"Invalid access token, does not contain scopes:[]."}

```

I checked my OAuth app and I confirm that it has the granular scope `zoom_rooms:write:location:admin`.

Here is the zm-trackingid of 4 different requests where I experienced this problem:

```auto
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_9dc094a8d5896b9d920eb14c1d3aef33
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_44519febd1b95a10f54a1f7825e79660
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_9f1bb60bd9cd29b542bb8bd748f7081c
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_13e0b7a1c77f235bab58c936c0efc73a

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 9, 2025, 3:02pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/7 "2025-04-09T15:02:42Z")

</div>

Hi @desautelsj , can you please verify the following?

**Prerequisites:**

- Account owner or admin permissions for Zoom Rooms
- Zoom Rooms Version 4.0 or higher

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 9, 2025, 7:14pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/8 "2025-04-09T19:14:37Z")

</div>

I am indeed the account owner but, correct me if I’m wrong, what’s more relevant is that my S2S OAuth app has the required granular scope.

Can you tell me how I check the Zoom Room version number? To be crystal clear: I am invoking the API endpoint, I am not using a SDK.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 10, 2025, 2:37pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/9 "2025-04-10T14:37:51Z")

</div>

Hi @desautelsj ,

Scopes and account permissions are both important for access. If you have all prereqs met, please try to re-auth, generate a new token with the scope in place and query the endpoint again.

> [@desautelsj](#):
>
> Can you tell me how I check the Zoom Room version number? To be cristal clear: I am invoking the API endpoint, I am not using a SDK.

I totally understand, however that is the requirement listed to use this API. I will follow up with a colleague who has full testing configurations to verify if this is the case or we need to update our docs: [Rooms APIs](https://developers.zoom.us/docs/api/rooms/#tag/zoom-rooms-location/PUT/rooms/locations/%7BlocationId%7D/location)

Here’s how to check the version:

> **[Checking the Zoom version number](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0063656)**
>
> You can view the version of the Zoom desktop or mobile app you are currently running. If you are running

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 10, 2025, 5:43pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/10 "2025-04-10T17:43:47Z")

</div>

@gianni.zoom You ask for the “Zoom Room version” but the link you provided explains how to get the version of the Zoom software. Are these two things the same?

In any case, here’s the version of the software installed on my machine:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/7/a7fbf572d993a619e8dbafcf14da12e7b6f57a32.png)

I am a little confused why the version of a software installed on my machine would play a role in a weird behavior from the Zoom API though.

At the risk of repeating myself: I want to make it abundantly clear that I am writing code to invoke API endpoints. I am not using a Zoom SDK, I am not using functionality in the Zoom software either. That’s why I am surprised that a given version of a software would make a difference.

By the way, were the `zm-trackingid` I previously provided helpful?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 10, 2025, 6:00pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/11 "2025-04-10T18:00:29Z")

</div>

Hi @desautelsj , apologies, I meant to send this link: [https://support.zoom.com/hc/en/article?id=zm\_kb&sysparm\_article=KB0060443](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0060443)

> [@desautelsj](#):
>
> In any case, here’s the version of the software installed on my machine:
> 
> ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/7/a7fbf572d993a619e8dbafcf14da12e7b6f57a32.png)
> 
> I am a little confused why the version of a software installed on my machine would play a role in a weird behavior from the Zoom API though.
> 
> At the risk of repeating myself: I want to make it abundantly clear that I am writing code to invoke API endpoints. I am not using a Zoom SDK, I am not using functionality in the Zoom software either. That’s why I am surprised that a given version of a software would make a difference.

Is the machine you’re referring to a Zoom Room? A Zoom Room can have a different version than another device such as your laptop. I understand you’re not using an SDK. We cycle through the requirements to help diagnose API behavior. Unfortunately, sometimes our error codes could be better so the issue is not always logical/clear so I am ruling everything out.

> [@gianni.zoom](#):
>
> Scopes and account permissions are both important for access. If you have all prereqs met, please try to re-auth, generate a new token with the scope in place and query the endpoint again.

Did you do the following?

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 10, 2025, 6:45pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/12 "2025-04-10T18:45:06Z")

</div>

> [@gianni.zoom](#):
>
> I meant to send this link:

I followed instructions to look at the rooms on my account and there are none:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/f/1f0e4a74dac7057ef5e9687889e1c03020e66b4a.png)

> [@gianni.zoom](#):
>
> Is the machine you’re referring to a Zoom Room?

No. I’m referring to my laptop. I am writing code that I execute from my laptop; this code sends HTTP requests to the Zoom API endpoints such as what I disclosed earlier:

```auto
DELETE https://api.zoom.us/v2/rooms/locations/FnsQXeE3Q3Og9kiz-i9NQQ

```

and I receive the following answer from the Zoom API:

```auto
HTTP/1.1 400 Bad Request 
{"code":4711,"message":"Invalid access token, does not contain scopes:[]."}

```

And please note that this is the exact same message that @thomas.leguen received when he sent a similar `DELETE` http requests to the same endpoint.

> [@gianni.zoom](#):
>
> please try to re-auth, generate a new token with the scope in place and query the endpoint again.

Yes I have. In fact my OAuth token expires every 60 minutes and it has been renewed several times.

> [@gianni.zoom](#):
>
> We cycle through the requirements to help diagnose API behavior.

I appreciate the methodical approach to eliminate possible root causes, I just don’t want us to spend time on a wild goose chase. I want to make sure it’s quite clear that I am sending HTTP requests to the API without the involvement of any other software or SDK and therefore the version of any such SDK/software should not matter.

Questions:

- Have you been able to reproduce? Both @thomas.leguen and I have provided the actual HTTP request and you should be able to use a tool like `curl` or `postman` to reproduce.
- I provided a few `zm-trackingid`. Did they allow you to dig a little deeper into this scenario?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 11, 2025, 2:06pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/13 "2025-04-11T14:06:38Z")

</div>

> [@desautelsj](#):
>
> Yes I have. In fact my OAuth token expires every 60 minutes and it has been renewed several times.

By re-auth I mean re-installing the app locally and then generating a new token. It sounds like you are just getting a fresh token.

> [@desautelsj](#):
>
> I appreciate the methodical approach to eliminate possible root causes, I just don’t want us to spend time on a wild goose chase. I want to make sure it’s quite clear that I am sending HTTP requests to the API without the involvement of any other software or SDK and therefore the version of any such SDK/software should not matter.

I hear you, however, sometimes things that a customer believes does not matter, do. The platform is not perfect and there has been weird behavior discovered over the years.

Nonetheless if you do not have a Zoom Room device, you have not met the requirements to use the endpoint. However, the error message is still not helpful.

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 11, 2025, 11:47pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/14 "2025-04-11T23:47:43Z")

</div>

> [@gianni.zoom](#):
>
> if you do not have a Zoom Room device, you have not met the requirements to use the endpoint

This is an interesting theory! I am allowed to create and update room locations despite the fact I do not have a device but I am **NOT** allowed to delete a location unless I have a device. Let me go write a test to validate this theory. I’ll be right back…

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 12, 2025, 12:14am UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/15 "2025-04-12T00:14:23Z")

</div>

I created a Zoom room with the following request:

```auto
REQUEST:
POST https://api.zoom.us/v2/rooms
{"name":"ZoomNet Integration Testing: Room","type":"ZoomRoom"}

RESPONSE:
HTTP/1.1 201 Created
{"id":"TLd5jdjdSIys-XTFv0uIYQ","room_id":"i8yy53rfR26Kl2uStzDHqA","name":"ZoomNet Integration Testing: Room","type":"ZoomRoom","location_id":""}

```

I used the UI to confirm that a new room was created:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/7/b79ce6993d5b6dd9d23e4f6ea2806e19558b875d.png)

And finally I issued the HTTP request to delete a location with the same unfortunate result:

```auto
REQUEST:
DELETE https://api.zoom.us/v2/rooms/locations/FnsQXeE3Q3Og9kiz-i9NQQ

RESPONSE:
HTTP/1.1 400 Bad Request
{"code":4711,"message":"Invalid access token, does not contain scopes:[]."}

```

I think this test disproves your theory that the issue was caused by the fact that I didn’t have a room on my account.

@gianni.zoom By the way, you haven’t responded to my earlier questions:

- have you been able to reproduce this issue? I believe I have given you all the info you need to reproduce this scenario.
- Per you request, I have provided 4 tracking Ids. Were you able to find any new information about this situation using these tracking IDs?

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 13, 2025, 12:01am UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/16 "2025-04-13T00:01:08Z")

</div>

> [@gianni.zoom](#):
>
> By re-auth I mean re-installing the app locally and then generating a new token. It sounds like you are just getting a fresh token.

I have deleted my S2S OAuth app and created a new one. Nothing changed, I still get `{"code":4711,"message":"Invalid access token, does not contain scopes:[]."}` when I try to delete a room location.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 14, 2025, 6:23pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/17 "2025-04-14T18:23:13Z")

</div>

Hi @desautelsj ,

> [@desautelsj](#):
>
> - have you been able to reproduce this issue? I believe I have given you all the info you need to reproduce this scenario.
> - Per you request, I have provided 4 tracking Ids. Were you able to find any new information about this situation using these tracking IDs?

I cannot re-produce the behavior you’re experiencing and your tracking ids have not been checked. I want to clarify that while I appreciate you sending them, I did not request yours. The request was for the customer who initially opened this post. With you, I was cycling through a few other factors that we’ve learned could have yielded the unexpected response before processing the tracking ids.

> [@desautelsj](#):
>
> I have deleted my S2S OAuth app and created a new one. Nothing changed, I still get `{"code":4711,"message":"Invalid access token, does not contain scopes:[]."}` when I try to delete a room location.

Thank you for testing and sharing this as well.

Given you’ve been given a trial license, I am trying to rule any internal permission flags that could be impacting what you’re seeing. Thank you for your patience and I’ll get back to you soon.

Additionally, can you please confirm if you have the option to delete the location manually? [https://support.zoom.com/hc/en/article?id=zm\_kb&sysparm\_article=KB0063345&\_gl=1\*1u6tofz\*\_gcl\_aw\*R0NMLjE3NDAwODg4MTkuQ2owS0NRaUF3dHU5QmhDOEFSSXNBSTlKSGFueHhiaTdjNENLQldzNDY5R01JMzl1bFkybnF1QktJYmk4Z25sbFVJYkI3VHFZb1pYeVNHRWFBdmE2RUFMd193Y0I.\*\_gcl\_au\*MTY2NTI5Nzg2Ni4xNzQxODA1ODA3\*\_ga\*MjEzODU3MjQ0Ni4xNzEyMTc1Mzc3\*\_ga\_L8TBF28DDX\*MTc0NDY1MTA2My40NTkuMS4xNzQ0NjU0MzI3LjAuMC4w](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0063345&_gl=1*1u6tofz*_gcl_aw*R0NMLjE3NDAwODg4MTkuQ2owS0NRaUF3dHU5QmhDOEFSSXNBSTlKSGFueHhiaTdjNENLQldzNDY5R01JMzl1bFkybnF1QktJYmk4Z25sbFVJYkI3VHFZb1pYeVNHRWFBdmE2RUFMd193Y0I.*_gcl_au*MTY2NTI5Nzg2Ni4xNzQxODA1ODA3*_ga*MjEzODU3MjQ0Ni4xNzEyMTc1Mzc3*_ga_L8TBF28DDX*MTc0NDY1MTA2My40NTkuMS4xNzQ0NjU0MzI3LjAuMC4w)

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 14, 2025, 11:38pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/18 "2025-04-14T23:38:09Z")

</div>

> [@gianni.zoom](#):
>
> can you please confirm if you have the option to delete the location manually?

I confirm:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/0/e0ef9a336478d3d24dc7b583fe9a693eeb7e7373.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/4/3417530b9bd183919b746a92632def16fe4ecbd2.png)

Also, Iconfirm that my OAuth app has the necessary scope:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/2/329caa769e8917a342b865ad0fe0b5e8796cd204.png)

---

<div class="post-metadata">

**Author:** ![desautelsj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desautelsj/32/23584_2.png) [@desautelsj](https://devforum.zoom.us/u/desautelsj)\
**Post date:** [April 15, 2025, 2:35pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/19 "2025-04-15T14:35:00Z")

</div>

> [@gianni.zoom](#):
>
> I want to clarify that while I appreciate you sending them, I did not request yours.

Fair enough. You didn’t request mine but, presumably, you asked @thomas.leguen for his because you felt it would be helpful in your investigation. That’s why I proactively provided mine and I was hoping you would used the IDs I provided to accelerate the investigation.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 15, 2025, 3:39pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/20 "2025-04-15T15:39:41Z")

</div>

Hi @desautelsj , thanks so much! As I shared before, with you, I was cycling through a few other factors that we’ve learned could have yielded the unexpected response before processing the tracking ids. Awaiting updates from service engineering about the tracking ids currently 🙂

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 16, 2025, 2:24pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/21 "2025-04-16T14:24:37Z")

</div>

Hi @desautelsj can you please send the new client id and latest tracking id? Since you deleted the original app, we cannot source. I’ll message you so you can share the client id privately.

[Next page](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594.md?page=2)
