# Delete a dependent

Operation ID: `patient.deleteDependent`

Delete a FHIR RelatedPerson dependent by its resource id. Requires a patient Bearer JWT.

## Public method

`deleteDependent`

Signature: `patient.deleteDependent(dependentId)`

Return type: `Promise<JsonValue>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`DELETE /patients/dependents/{dependent_id}`

## Path parameters

| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `dependent_id` | `string` | Yes |  |  |  | No |  |

## Query parameters

None.

## Body parameters

None.

Request model: None.

## Request example

None declared in canonical OpenAPI.

## Success responses

| Status | Shape | Content type | Description |
|---|---|---|---|
| `200` | [`DeleteDependentResponse`](../models/DeleteDependentResponse.md) | application/json | Dependent deleted |

## Success response examples

### 200

```json
{
  "deleted": "activity-example-001"
}
```

## Common errors

| Status | Shape | Content type | Description |
|---|---|---|---|
| `401` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | Authorization required — missing, invalid, expired, or non-patient Bearer JWT |
| `404` | [`patient.ErrorResponse`](../models/patient.ErrorResponse.md) | application/json | No RelatedPerson exists with this id |

## Error examples

### 401 — Missing or invalid access token

```json
{
  "error": "Authorization required"
}
```

### 404 — The dependent does not exist

```json
{
  "error": "Not Found"
}
```

## NodeJS / TypeScript implementation

```ts
import { HCSDK } from "@healthcloudai/hc-sdk";
```

```ts
const dependentId = "2026-08-15T09:00:00Z";

const result = await patient.deleteDependent(dependentId);
```

## cURL

```bash
curl -X DELETE \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  'https://dev-api-patient.health.cloud/patients/dependents/2026-08-15T09%3A00%3A00Z'
```

## Notes

None.

## Prepared Test Console scenario

No canonical scenario is currently associated.

## Real response

No approved real integration response is currently published. Unapproved candidates are never rendered as examples.
