Remove topics

You can remove a single topic, or multiple topics using a topic selector.

Remove Topic API

Endpoint

https://api.diffusion.cloud/topics/remove

Content-type

application/json

Method

POST

Required scope(s)

rest-api/remove

curl --include                                              \
     --request POST                                         \
     --url https://api.diffusion.cloud/topics/remove        \
     --header 'authorization: Apikey <TOKEN>'               \
     --header 'content-type: application/json'              \
     -d '{"path":"my-topic-to-remove"}'
Remove Topic parameters
Parameter Optional? Default Description

path

Yes

—

The Diffusion topic path as a string.
It is mandatory to provide either the path or the selector, but not both.

selector

Yes

—

The Diffusion topic selector as a string.
It is mandatory to provide either the path or the selector, but not both.

Remove Topic response status
Code Description

200

Topics removed successfully

400

There was a problem removing the topics due to the parameters supplied. See message for more details

500

There was an unexpected problem removing the topics. See message for more details

Further reading

This endpoint is a thin wrapper around the JavaScript client SDK’s own topic removal method - see TopicControl.remove in the JavaScript SDK reference for more detail, including how selectors are evaluated and what permissions are required.