- Strapi Version: 4.10.2
- Operating System:
- Database: PostgreSQL
- Node Version: 16.13.1
- NPM Version: 8.19.2
- Yarn Version:
I’m using Strapi as a backend for my frontend SvelteKit app, using the Users & Permission plugin for auth, but also for managing Mailgun mailing lists.
When the user is added/updated/deleted, it is automatically added/updated/deleted to/from the corresponding role’s Mailgun mailing list and everything is fine as long as we’re not using bulk actions.
With bulk delete, I need to use
beforeDeleteMany hook for which, unfortunately, I cannot find any docs or examples of use. Could anybody share their experiences with this particular hook? The hook has to go through all selected entries and delete users one by one from the corresponding Mailgun mailing list before deleting them.
Thank you for your time and effort.