N
Novu•5mo ago
ManwinderSingh

Handle delete topics

Can I delete the topic using a curl even if we have subscribers added to the topic?
6 Replies
Ask Inkeep
Ask Inkeep•5mo ago
Hi @ManwinderSingh, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Delete topic * Subscribers removal * Subscribers addition * Topics -----------------------------
Ask Inkeep
Ask Inkeep•5mo ago
Answer No, you cannot directly delete a topic if it has subscribers added to it. You must first remove all subscribers from the topic before you can delete it using a curl command (1) .
Pawan Jain
Pawan Jain•5mo ago
@ManwinderSingh Yes topic can be deleted Are you facing any issue?
ManwinderSingh
ManwinderSingh•5mo ago
Able to delete the topic but the doc says that we need to clear the topic first to delete it
Pawan Jain
Pawan Jain•5mo ago
Let me check 🙂 @ManwinderSingh Sorry, yes our doc is correct I got this error while deleting a topic with subscribers added
{
"message": "Topic with key topic_0011 in the environment 638e13095e962a70bf40351e can't be deleted as it still has subscribers assigned",
"error": "Conflict",
"statusCode": 409
}
{
"message": "Topic with key topic_0011 in the environment 638e13095e962a70bf40351e can't be deleted as it still has subscribers assigned",
"error": "Conflict",
"statusCode": 409
}
ManwinderSingh
ManwinderSingh•5mo ago
😦
Want results from more Discord servers?
Add your server