N
Novu12mo ago
rajat

Is there an API to bulk-delete messages?

E.g. if i have a list of 10 messages I want to delete
8 Replies
Pawan Jain
Pawan Jain12mo ago
Hi @rajat5885 We have not publically exposed that API but you can use removeAllMessages() function of useNotifications hook in react Update React Notification Center npm package @novu/notification-center to 0.16.2 version
rajat
rajat12mo ago
is there away to remove all notifications with a specific payload?
Novu_Bot
Novu_Bot12mo ago
@rajat5885, you just advanced to level 2!
rajat
rajat12mo ago
for example remove all notifications that have { metadata: { state: expired } } in their payload
Pawan Jain
Pawan Jain12mo ago
No, we only added feedId support
rajat
rajat12mo ago
can a feature request be created for either of these?
Pawan Jain
Pawan Jain12mo ago
Yeah !feature