curl -XDELETE https://qstash.upstash.io/v2/topics/:topicName/endpoints \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"endpoints": [
{
"name": "endpoint1",
},
{
"url": "https://somewhere-else.com"
}
]
}'
Remove one or multiple endpoints from a topic. If all endpoints have been removed, the topic will be deleted.
Request
The name of your topic. If it doesn’t exist, we return an error.
The endpoints to be removed from to the topic.
Either name
or url
must be provided
Response
This endpoint simply returns 200 OK if the endpoints have been removed successfully.
curl -XDELETE https://qstash.upstash.io/v2/topics/:topicName/endpoints \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"endpoints": [
{
"name": "endpoint1",
},
{
"url": "https://somewhere-else.com"
}
]
}'