Delete Contact List
Using the SDK
// Download the helper library from https://www.npmjs.com/package/dropcowboy
const { DropCowboy } = require("dropcowboy"); // Or, for ESM: import { DropCowboy } from "dropcowboy";
// Find your Team ID and Secret at dropcowboy.com/appv1/#/api
// and set the environment variables.
const teamId = process.env.DROPCOWBOY_TEAM_ID;
const secret = process.env.DROPCOWBOY_SECRET;
const client = new DropCowboy({ teamId: teamId, secret: secret });
async function deleteList(listId) {
const list = await client.deleteContactList(listId);
console.log(list);
};
deleteList("00000000-0000-0000-0000-000000000000");API Endpoint
Example Request
Required Headers
Required URL Path Parameters
Example Response
Last updated
Was this helpful?