## MedplumClient.deleteResource() method

Deletes a FHIR resource by resource type and ID.

**Signature:**

```typescript
deleteResource(resourceType: ResourceType, id: string, options?: MedplumRequestOptions): Promise<any>;
```

## Parameters

| Parameter   | Type                                | Description                                     |
| ----------- | ----------------------------------- | ----------------------------------------------- |
| resourceType | ResourceType                       | The FHIR resource type.                        |
| id          | string                             | The resource ID.                               |
| options     | [MedplumRequestOptions](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options.           |

**Returns:**

Promise<any>

The result of the delete operation.

## Example

Example:

```typescript
await medplum.deleteResource('Patient', '123');
```

See the [FHIR "delete" operation](https://www.hl7.org/fhir/http.html#delete) for full details.
