Skip to content

MaintenanceThe former company search endpoint goes into maintenance on November 9Migration guide

Endpoints // Lists

Delete a List

New

Last verified

Available inAPIMCPSDK

Delete a List with its members, their stored data and its Pending Intake, for free.

DELETE/v2/lists/:listId

Credits

Free.

Introduction

The Delete a List endpoint deletes a List for good: its members, the data the List stored for them and its Pending Intake. Export the List first with Export a List if you need to keep a copy. To take some members out and keep the List, use Remove members.

Deleting a List is free (0 credits). While an import is queued, running or paused on the List, while the lines of a cancelled import still wait for their result, or while a Search of the app is still adding people to it, the request returns 409 LIST_BUSY: wait for the import to end, or cancel it and wait for its last results, then delete again.

The API key needs the lists permission (see API key management).

Authorization

NameTypeRequiredDescription
apikeystringYesYour API key from the developer dashboard. Pass it via Authorization: Bearer YOUR_API_KEY header.

Request

The route is DELETE /v2/lists/:listId.

Path parameters

NameTypeRequiredDescription
listIdstringYesId (UUID) of the List to delete

The request has no body.

Response structure

FieldTypeDescription
successbooleantrue if the List was deleted
errornullAlways null on success
dataobject

Deletion acknowledgement

Show child attributes
FieldTypeDescription
deletedbooleanAlways true

quotas and metadata are the blocks of every V2 response: see Usage.

Errors

StatusCodeMeaning
404LIST_NOT_FOUNDNo List with this id in your workspace
404LISTS_NOT_ACTIVATEDThe workspace has never had a List
409LIST_BUSYAn operation is queued, running or paused on the List, or its last results are still on their way

Code examples

Code Examples

curl -X DELETE https://api.reversecontact.com/v2/lists/3f6c2a8e-1b4d-4f0a-9c7e-5d2b8a1e6f40 \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

200 - Success

Example Response

{
  "success": true,
  "data": {
    "deleted": true
  },
  "error": null,
  "quotas": {
    "creditsConsumed": 0,
    "workspace": {
      "id": "ws_abc123",
      "credits": { "total": 10000, "used": 4521, "left": 5479 }
    }
  },
  "metadata": {
    "requestId": "req_d1e2l3e4t5e6",
    "executionTimeMs": 61
  }
}