v1.0.0
OpenAPI 3.1.0

Delete a collection

US region

Client Libraries

Delete a collection

​

Remove a collection and its contents. You can't delete a collection that an automation or broadcast queries, including an archived one, because you could unarchive it later. Remove the collection from those messages first.

Path Parameters
  • collection_id
    Type: integer
    required

    The identifier for a collection.

Responses
  • 204

    The collection is deleted.

  • 404

    The collection id does not exist.

  • 422

    An automation or broadcast still queries the collection. The response lists the ID of each one.

  • application/json
Request Example for delete/v1/collections/{collection_id}
curl https://api.customer.io/v1/collections/1 \
  --request DELETE \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body