---
title: "Delete Extension"
method: DELETE
path: "/restapi/v1.0/account/{accountId}/extension/{extensionId}"
tags: ["User Settings"]
deprecated: true
---

# Delete Extension

`DELETE /restapi/v1.0/account/{accountId}/extension/{extensionId}`

> **Deprecated.**

Deletes extension(s) by ID(s). When an extension is being deleted
the default API behavior is as follows:

- user's direct numbers are preserved by becoming additional company numbers;
- user's digital lines (both device & associated phone number) are deleted.

You can change this behavior using the filters:

- create unassigned extensions for each digital line of the deleted extension by
  setting the query parameter `savePhoneLines` to `true` in request path;
- remove direct numbers of the deleted extension by setting the `savePhoneNumbers`
  query parameter to `false` in request path

**Note!** Since this API is now deprecated, please use the following API method `DELETE /restapi/v2/accounts/{accountId}/extensions` for users deletion.

## Path parameters

- `accountId` string, required
- `extensionId` string, required

## Query parameters

- `savePhoneLines` boolean
- `savePhoneNumbers` boolean

## Response `204`

No Content

---

[API](https://skmtc.net/ringcentral/apis/ringcentral-api.md) · [All operations](https://skmtc.net/ringcentral/apis/ringcentral-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ringcentral/ringcentral-api/revisions/8d602198ec97/schema)
