Delete List
Delete a list that is not bound to any agent. Reversible.
Deletes a list. It stops being returned by every endpoint — it is gone as far as the API is concerned — but nothing is destroyed: its members and its membership history are kept, and Restore list brings it back exactly as it was. The companies and people themselves are shared across your workspace and are never deleted either way.
A list that is still bound to one or more agents cannot be deleted — unbind it first (see Update agent, pass watchlist_id: null).
A list that is the only one left for its tier cannot be deleted — create another list of that tier first. The Tier 1, Tier 2 and Tier 3 lists every workspace starts with follow the same rule as any other list: they can be deleted as long as another list covers their tier. The employee list, "All my employees", can never be deleted. Archiving follows the same rule.
Before deleting, read is_deletable and not_deletable_reason on the list.
To take a list out of the way without deleting it, archive it instead: pass archived: true to Update list.
Delete list
Path parameters
| Parameter | Type | Description |
|---|---|---|
| kind | string | List kind: company or profile (matches the list type). |
| list_id | integer | Identifier of the list. Specific to your environment. |
Example request
curl -X DELETE "https://api.getsillage.com/api/v2/lists/company/128" \
-H "Authorization: Bearer $SILLAGE_API_KEY"Example response
{
"data": { "id": 128 }
}Errors
| Status | Description |
|---|---|
| 401 | The API key is missing or invalid. |
| 402 | Your workspace has no active plan. title is "Paywall required" and type is https://docs.getsillage.com/errors/paywall-required. Start your trial or choose a plan at https://www.getsillage.com/paywall, then retry. |
| 404 | The list does not exist in your workspace. |
| 409 | The list is bound to one or more agents (unbind them first), it is the only list of its tier (create another list of that tier first), an agent reads it, or it is the employee list, "All my employees". |
| 422 | Invalid kind or list_id. |
| 429 | Too many requests. |
| 500 | An unexpected server error occurred. |