# 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:** 13\
**Page:** 2

<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 16, 2025, 4:47pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/22 "2025-04-16T16:47:03Z")

</div>

Here are a few new tracking Ids:

```auto
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_7f89857113e0d49584efb3817663b600
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_68cb59d300ec8da15500a970b1f7cec6
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_e703fb35cb957d923f7b5506aab4f750
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_e7880ded4ab45b2a09447114c5e0c138

```

---

<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 17, 2025, 3:58pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/23 "2025-04-17T15:58:56Z")

</div>

Thanks so much, looking into it.

---

<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 22, 2025, 2:09pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/24 "2025-04-22T14:09:15Z")

</div>

Still waiting to hear from service engineering team. I just followed up with them. Thanks for your patience.

---

<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 23, 2025, 1:40pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/25 "2025-04-23T13:40:04Z")

</div>

Hi @desautelsj so this is definitely a bug with the granular scope (ZOOM-940063). Release date for fix not shared yet. Thanks for following up on this!

---

<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 23, 2025, 1:53pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/26 "2025-04-23T13:53:34Z")

</div>

Great I’m glad we got to the bottom of it.

> [@gianni.zoom](#):
>
> I cannot re-produce the behavior you’re experiencing

I’m baffled by the fact that you were not able reproduce in your testing though. Any insight why you didn’t get the error while @thomas.leguen and I did?

---

<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 23, 2025, 2:43pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/27 "2025-04-23T14:43:13Z")

</div>

Hi @desautelsj , I was using the legacy scope as opposed to granular one

---

<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:** [May 13, 2025, 7:32pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/28 "2025-05-13T19:32:47Z")

</div>

Hi @desautelsj this should be resolved in the upcoming May release.

---

<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:** [May 14, 2025, 1:11am UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/29 "2025-05-14T01:11:08Z")

</div>

Excellent, thanks for following up.

---

<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:** [May 14, 2025, 3:35pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/30 "2025-05-14T15:35:50Z")

</div>

@desautelsj No problem! Thanks for your investigation. After May changelog release, can you please confirm in this thread when you’ve checked again?

---

<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:** [May 22, 2025, 2:00pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/31 "2025-05-22T14:00:41Z")

</div>

I have been monitoring the changelog and I haven’t seen any mention of changes related to deleting room locations but, out of curiosity, I attempted to delete a location and I am now getting a different result:

```auto
REQUEST:
DELETE https://api.zoom.us/v2/rooms/locations/m8zgreeDSre0gppeSgIppg

RESPONSE:
HTTP/1.1 400 Bad Request
{"code":200,"message":"Access restricted."}

```

The tracking ID, in case it’s helpful, was:

```auto
x-zm-trackingid: v=2.0;clid=us06;rid=WEB_d8dba1806b4e8d7042d3ab74ddbb8f37

```

---

<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:** [May 22, 2025, 10:23pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/32 "2025-05-22T22:23:45Z")

</div>

> [@desautelsj](#):
>
> ```auto
> REQUEST:
> DELETE https://api.zoom.us/v2/rooms/locations/m8zgreeDSre0gppeSgIppg
> 
> RESPONSE:
> HTTP/1.1 400 Bad Request
> {"code":200,"message":"Access restricted."}
> 
> ```
> 
> The tracking ID, in case it’s helpful, was:
> 
> ```auto
> x-zm-trackingid: v=2.0;clid=us06;rid=WEB_d8dba1806b4e8d7042d3ab74ddbb8f37
> 
> ```

@desautelsj okay I’m checking with the team.

---

<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:** [May 23, 2025, 1:06am UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/33 "2025-05-23T01:06:02Z")

</div>

I think I figured it out. There was a room associated with the location I was attempting to delete. I manually deleted the room and ran my “delete a location” API test again: it completed successfully.

So, this latest problem was simply a misleading error message: the problem had noting to do with permissions, scopes, access being denied or anything like that. It would have been helpful if the message was more explicit. Something along the lines of `You can not delete this location because a room is associated with it`.

Long story short: the issue with the “delete location” API end point seems to have been fixed. It’s weird that this fix wasn’t mentioned in the [Zoom Developer Changelog](https://developers.zoom.us/changelog/?tags=api-release).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 2, 2025, 3:10pm UTC](https://devforum.zoom.us/t/cannot-delete-location-scope-error-4711-empty-array/118594/34 "2025-06-02T15:10:41Z")

</div>

Closed on June 2, 2025, 3:10pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

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