Skip to main content
DELETE
Delete Clients

Permissions

Requires Client matters admin (write:client_matters).

Order

Delete the client’s matters with DELETE /api/v2/matters before you delete the client. A client with at least one matter that is not deleted fails with client_has_matters and is not deleted. This includes matters with allowed set to false. This endpoint never deletes or changes matters.

Matching

Send the client_id values you use with POST /api/v2/clients. Do not send the client label (client_name) or the Harvey client UUID. Harvey trims leading and trailing whitespace from each identifier.

Results

Each identifier appears once in the response: in deleted, already_absent, or errors. Within each array, results keep the order of the request. deleted and already_absent return the trimmed identifiers. errors echoes the values you sent. An identifier with no matching client appears in already_absent. So does a client that was already deleted. These are successful results, so a repeated request is safe. An identifier that repeats an earlier identifier after trimming fails with duplicate_client_id. Harvey processes the earlier identifier as usual. A later POST /api/v2/clients with the same client_id restores the client. It does not restore the client’s deleted matters. See the Client Matters guide for examples and error handling.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Submit the client_id values to delete. Unknown fields return HTTP 400 with invalid_request.

client_ids
string[]
required

The firm's client identifiers, the client_id values used in v2 upserts. Not client labels or Harvey client UUIDs. Surrounding whitespace is trimmed.

Required array length: 1 - 10000 elements

Response

Per-identifier results for the submitted clients.

Every identifier in the request has one result. Within each array, results keep the order of the request.

deleted
object[]
required

Clients deleted by this request.

already_absent
object[]
required

Missing or already-deleted clients. These are successful results. A repeated request returns a deleted client here.

errors
object[]
required