You can delete a single collection by making a DELETE request to https://api.intercom.io/collections/<id>.
Security
bearerAuth
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
- The production API serverhttps://api.intercom.io/help_center/collections/{id}
- The european API serverhttps://api.eu.intercom.io/help_center/collections/{id}
- The australian API serverhttps://api.au.intercom.io/help_center/collections/{id}
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)successful
Response
{ "id": "182", "object": "collection", "deleted": true }