import zootools from "zootools";
zootools.setApiToken("YOUR_ZOOTOOLS_API_KEY_FROM_THE_DASHBOARD");
const response = await zootools.contacts.delete({
// useful in case you store the contactId from zootools in your database
id: "12312312",
});
if (response.wasDeleted) {
console.log("Contact was deleted!");
} else {
// Errors, etc..
console.log(response.reason);
}