---
title: "Remove the association between a provider and a specialty"
method: DELETE
path: "/specialties/{specialtyId}/providers/{providerId}"
tags: ["specialties"]
---

# Remove the association between a provider and a specialty

`DELETE /specialties/{specialtyId}/providers/{providerId}`

## Request

- Base URL: `https://api.lumahealth.io/api/v2`
- URL: `https://api.lumahealth.io/api/v2/specialties/{specialtyId}/providers/{providerId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lumahealth/apis/rest-service/docs/specialties/:specialtyId/providers/:providerId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `specialtyId` string, required
- `providerId` string, required

## Response `200`

Deleted specialty resource

- SpecialtyResourceResponse: Represents an association between a specialty and a specific resource such as an appointment type, provider, or facility. It is used to determine which providers, facilities, or appointment types belong to a given medical specialty.
  - `_id` string: Luma's internal ID of an object.
  - `user` string: The ID of the root account user.
  - `deleted` 0 | 1: Flag for logical deletion where 1 means deleted.
  - `createdBy` string: The ID of the user who created this object.
  - `updatedBy` string: The ID of the user who updated this object.
  - `deletedBy` string: The ID of the user who deleted this object.
  - `createdAt` string, date-time: The date/time when this object was created.
  - `updatedAt` string, date-time: The date/time when this object was updated.
  - `deletedAt` string, date-time: The date/time when this object was deleted.
  - `specialty` string
  - `refId` string
  - `ref` 'appointmentType' | 'facility' | 'provider'

## Other responses

- `401`: Not authenticated
- `403`: Access token does not have the required scope

---

[API](https://skmtc.dev/lumahealth/apis/rest-service.md) - [All operations](https://skmtc.dev/lumahealth/apis/rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/lumahealth/apis/rest-service/revisions/f19aeba84a26?raw)
