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

ParameterTypeDescription
urlURL | stringThe target URL.
optionsMedplumRequestOptions(Optional) Optional fetch options.

Returns:

Promise<any>

Promise to the response content.