Skip to main content
← Data, API & Backend
Data, API & Backend November 9, 2022 · 8 replies

Deleting user with XANO

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Apple requested that a delete user function was required, so i made one using a simple delete request in XANO and that works fine, the user is succefully deleted. 

However it seems that the session did not forget the user and still tries to keep the user inside the main app, just showing a 500 error as the user is not found. 

Problem is the user is stuck in this state.  The proper logic should be when user is deleted then he will logged out and redirected to the login page, but i see no way to do this. 

Does anyone have any idea on this?

8 replies

Pau Bravo team November 9, 2022

At the moment a 401 instead of a 500 should trigger the login page, but I see your point, will try to add as a remote action the logout action too, so after a request success (deleting a user), you can logout the user in the future.

samuel February 9, 2023

Hi Nicolai. How did you set it up I am on the last part of getting the GET request to to recognise the user. I would really appreciate the help thank you 🙂

Fred December 6, 2023

I just display a message "your account is gonne be deleted in 24hours"

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord