core.remove | Medplum

remove() function

The "remove" operation removes the value at the target location. The target location MUST exist for the operation to be successful.

Signature:

export declare function remove(object: any, operation: RemoveOperation, _options?: PatchOptions): MissingError | null;

Parameters

Parameter Type Description
object any The object being patched.
operation RemoveOperation The operation to perform on the object.
_options PatchOptions (Optional) Optional params.

Returns:

MissingError | null

null on success, or error if one occurred.