Delete an Object
Delete an object by its objectType
and objectId
.
Endpoint
DELETE /v2/objects/:objectType/:objectId
Request
Path Params
objectType string
The objectType
of the object to delete.
objectId string
The objectId
of the object to delete.
Request
- cURL
- CLI
- Go
- Java
- Node.js
- PHP
- Python
- Ruby
DELETE /v2/objects/:objectType/:objectId
curl "https://api.warrant.dev/v2/objects/user/d6ed6474-784e-407e-a1ea-42a91d4c52b9" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY" \
DELETE /v2/objects/:objectType/:objectId
warrant object delete user:d6ed6474-784e-407e-a1ea-42a91d4c52b9
DELETE /v2/objects/:objectType/:objectId
warrantToken, err := object.Delete("user", "d6ed6474-784e-407e-a1ea-42a91d4c52b9")
DELETE /v2/objects/:objectType/:objectId
String warrantToken = client.deleteObject(new BaseWarrantObject("user", "d6ed6474-784e-407e-a1ea-42a91d4c52b9"));
DELETE /v2/objects/:objectType/:objectId
let warrantToken = await warrantClient.Object.delete({
object: {
objectType: "user",
objectId: "d6ed6474-784e-407e-a1ea-42a91d4c52b9"
},
);
DELETE /v2/objects/:objectType/:objectId
$warrant->deleteObject("user", "d6ed6474-784e-407e-a1ea-42a91d4c52b9");
DELETE /v2/objects/:objectType/:objectId
warrant_token = warrant.Object.delete(object_type="user", object_id="d6ed6474-784e-407e-a1ea-42a91d4c52b9")
DELETE /v2/objects/:objectType/:objectId
warrant_token = Warrant::Object.delete("user", "d6ed6474-784e-407e-a1ea-42a91d4c52b9")
Response
Headers
Warrant-Token string
A unique transaction identifier for this write operation. Can be cached and passed on subsequent read requests.
200 OK