Custom objects
Delete a record
Permanently deletes the record, its field values, relations and comments. To keep it recoverable, archive with active: false instead. Clients without DELETE can use POST /api/v1/objects/{key}/records/{id}/delete.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope:
crm.writePath parameters
keystringrequiredObject key.
idintegerrequiredRecord id.
Errors
| HTTP | error | Meaning |
|---|---|---|
403 | forbidden | You may not see / edit this record. |
404 | not_found | Record not found. |
Request
curl -X DELETE https://ornek.solk.app/api/v1/objects/uretim_hatti/records/1 \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/objects/uretim_hatti/records/1", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.delete(
"https://ornek.solk.app/api/v1/objects/uretim_hatti/records/1",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response
{
"deleted": 1,
"ok": true
}Example responses were captured from a v43b installation running sample data; lists are shortened to two items.