Remove topics
You can remove a single topic, or multiple topics using a topic selector.
Endpoint |
|
Content-type |
|
Method |
|
Required scope(s) |
|
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"}'
| Parameter | Optional? | Default | Description |
|---|---|---|---|
path |
Yes |
— |
The Diffusion topic path as a string. |
selector |
Yes |
— |
The Diffusion topic selector as a string. |
| Code | Description |
|---|---|
|
Topics removed successfully |
|
There was a problem removing the topics due to the parameters supplied. See |
|
There was an unexpected problem removing the topics. See |
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.