Delete Contact List
This endpoint allows users to delete a specific list by providing the unique identifier list_id.
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
DELETE
https://api.dropcowboy.com/v1/list/{list_id}Example Request
Required Headers
x-team-id- Your Team ID from API settingsx-secret- Your Secret Key from API settings
Required URL Path Parameters
list_id(string) - The unique identifier of the list that you wish to delete. This parameter is required.
Example Response
The response will have a 200 OK status code and a payload with the deleted list_id on successful deletion.
Last updated
Was this helpful?