Moves a list to the trash. The list is soft-deleted and may be restored from the Lightfield UI. Member entities (accounts, contacts, or opportunities) are not affected.
Calling delete on an already-trashed list is a no-op and returns the existing record.
Required scope: lists:delete
Rate limit category: Write
Delete a list
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
list_delete_response = client.list.delete(
id="id",
)
print(list_delete_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}