Skip to content

Delete a collection

Request

You can delete a single collection by making a DELETE request to https://api.intercom.io/collections/<id>.

Security
bearerAuth
Path
idintegerrequired

The unique identifier for the collection which is given by Intercom.

Example:123
Headers
Intercom-Versionstring(intercom_version)

Intercom API version.
By default, it's equal to the version set in the app package.

Default:"2.14"
Enum:"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4"
Example:2.14
library(httr)

id = "123"

# create you own operator
"%&%" <- function(x, y)paste0(x,y)

url = "https://api.intercom.io/help_center/collections/" %&% id

data_req <- DELETE(
  url,
  add_headers("Intercom-Version" = "2.14", "Authorization" = "Bearer <YOUR_TOKEN_HERE>"),
  verbose()
)

content(data_req)

Responses

successful

Bodyapplication/json
idstring

The unique identifier for the collection which you provided in the URL.

Example:"6890762"
objectstring

The type of object which was deleted. - collection

Value:"collection"
Example:"collection"
deletedboolean

Whether the collection was deleted successfully or not.

Example:true
Response
{ "id": "182", "object": "collection", "deleted": true }