Skip to main content

Batch Delete Objects
Warrant Cloud Only

Delete up to 100 objects in one API request.

Endpoint

DELETE /v2/objects

Request

Body


A list of objects containing the objectType and objectId.


note

Each batch delete request can delete up to 100 new objects. Requests containing more than 100 objects will fail.

Batch deletes are atomic operations. If any error (client or server) is encountered during creation, none of the objects will be deleted. Batch delete requests can therefore be safely retried.

curl "https://api.warrant.dev/v2/objects" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'[{"objectType":"user","objectId":"d6ed6474-784e-407e-a1ea-42a91d4c52b9"},{"objectType":"user","objectId":"59ed2c60-6945-42dc-b770-d3a78212ffdf"}]'

Response

Headers


Warrant-Token string

A unique transaction identifier for this write operation. Can be cached and passed on subsequent read requests.


200 OK