Skip to main content

core.medplumclient.delete

Home > @medplum/core > MedplumClient > delete

MedplumClient.delete() method

Makes an HTTP DELETE request to the specified URL.

This is a lower level method for custom requests. For common operations, we recommend using higher level methods such as deleteResource().

Signature:

delete(url: URL | string, options?: MedplumRequestOptions): Promise<any>;

Parameters

Parameter

Type

Description

url

URL | string

The target URL.

options

MedplumRequestOptions

(Optional) Optional fetch options.

Returns:

Promise<any>

Promise to the response content.