News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Is there an API to delete Ext. with No Device Assigned?
Tags: extension
Jun 28, 2023 at 6:52am   •   1 replies  •  0 likes
Tyrone Stephens

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

1 Answer
answered on Jun 28, 2023 at 7:57am  

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
on Jun 29, 2023 at 8:28am   •  0 likes

Thanks Phong Vu, will give this a try



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us