Trigger registerBeforeDeleteAccount via admin panel

Hey everyone,

my team and I plan on storing played game histories in the players account storage with a reference to other players.
This will result in each participant having a copy of participated player Ids stored as strings.

Is there a way to trigger the registerBeforeDeleteAccount hook when an admin triggers the delete. The storage of the deleted user gets deleted but it seems like the hook doesn’t get triggered. In my country a pseudonym like and UUID still counts as personal data according to GDPR and we have to alter all the “duplicate” data that is stored with other users. When a admin deletes an account, for any reason, it should have the same deleting/overwriting behavior.

Version: Nakama 3.25 Docker
Server Framework Runtime language TS

Thank you for your help!

Hello @iceHtwoO,

Before/After hooks do not trigger for requests done via the Console, as it has its own endpoints and API.

If you need custom deletion logic, I’d suggest you create a custom RPC with a guard to prevent it being invoked from the client and only allow it as a Server-To-Server call, it can then be triggered from the API explorer.

Best.