Delete a list
client.list.delete(stringid, ListDeleteParams { body } params?, RequestOptionsoptions?): ListDeleteResponse { id, createdAt, fields, httpLink }
DELETE/v1/lists/{id}
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
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const listDeleteResponse = await client.list.delete('id');
console.log(listDeleteResponse.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"
}