N
Novu8mo ago
DennisK

[BUG] Deleting sub does not hard delete?

Hi! So I am finishing my notifications setup and I deleted a sub using the SDK
await novuClient.subscribers.delete('subid')
await novuClient.subscribers.delete('subid')
This worked as I saw an empty list of subscribers within Novu Cloud. However, when I return to my app and open the notification center, I see a list of archived notifications. First I thought it might have to do with state, so I did restart the application, but all the notifications are shown again and within Novu cloud I do see a new Subscriber entry now with that same ID but without any user data (name, email, etc)
5 Replies
Ask Inkeep
Ask Inkeep8mo ago
Hi @DennisK, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Subscribers * Backend SDK methods * Delete subscriber * React -----------------------------
Ask Inkeep
Ask Inkeep8mo ago
Answer When deleting a subscriber in Novu using the deletion method from the SDK, it should indeed result in a "hard delete," meaning the subscriber and their data should no longer be accessible or recoverable. This action is confirmed in the documentation which states: "To stop a subscriber from receiving notifications, you can delete the subscriber. This will hard delete the subscriber and means you will not be able to access this subscriber later" (1) (2) . However, what you're experiencing with the reappearance of a subscriber in the Novu cloud without any user data and with archived notifications still visible might suggest a state retention issue within the application or a delay in the propagation of the delete action across all systems, which isn't directly covered in the available documentation. It’s also important to check if your app or another part of your system might be automatically recreating subscribers under certain conditions (e.g., a user re-authenticates or revisits certain parts of your app). For a more definite resolution or if the issue persists, you might want to directly consult with Novu's support or developer community to see if there are any known issues or updates around this behavior that aren't covered in the public documentation.
Ask Inkeep
Ask Inkeep8mo ago
Got it. Tagging @Support for additional help.
Dima Grossman
Dima Grossman8mo ago
Hi @DennisK, if you remove a subscriber, and reload the page the notification center will perform an identify a command and will upsert a new subscriber with it's id. The old feed is displayed since you are using the same "subscriberId". Regarding the old feed, I will open a ticket with the team to take a look at this.
Want results from more Discord servers?
Add your server