Deletes a list with a specified ID.
List deleted.
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
Specified list is in use in a rule and cannot be deleted.
const request = await api.lists.delete({id: 'my-second-key'}); // the request does not return any fields but // you can confirm the success using the status code console.log(request.response.status); // 204
{- "status": 401,
- "title": "string",
- "detail": "string",
- "instance": "string"
}