question

Tyrone Stephens avatar image
Tyrone Stephens asked Tyrone Stephens commented

Is there an API to delete Ext. with No Device Assigned?

Does anyone know if there's an API which allows you to delete Unassigned extensions that do not have numbers assigned to them? They are called Ext. with No Device Assigned (so can be deleted without incurring billing). I have approx 15,000 unassigned extensions that need to be deleted manually at present to tidy up the account - very time consuming. screenshot-2023-06-28-at-144725.png

extension
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered Tyrone Stephens commented

You can try this.

- Call this API to list all unassigned extensions (set the status = "Unassigned").

- Use the extension id of each unassigned extension listed above and call this API to detect if the extension has no device = put that extension id on a list

- Call this API to delete those unassigned extensions.

I have not tested the solution but it should work. You have to handle the API rate limit to handle that massive amount of API calls though.

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyrone Stephens avatar image Tyrone Stephens commented ·

Thanks Phong Vu, will give this a try

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys