Anonymous users stay in database

3
We have a lot of anonymous users stored in our database, with created dates going months back. Why are they not removed automatically? It's easy of course to have a scheduled event remove anonymous users created more than x hours ago, but shouldn't Mendix take care of that? Could it be that existing anynomous users remain stored when the app is restarted or are there other, more useful, scenarios? Should (can) we prevent it?
asked
4 answers
0

see https://docs.mendix.com/refguide/anonymous-users, which states:

Clean up objects that were attached to the anonymous user and that you do not transfer to the signed-in user. Since the anonymous user is deleted after running the sign-in microflow, you can use delete behavior to automatically clean objects that were attached to the anonymous user.

answered
0

Hi Martin,

I’m seeing the same behaviour here (9.6.6).

Any new insights in the meantime why the Anonymous user objects are not removed automatically by Mendix?

Best,

Nick

answered
0

Noticed it long time back and implemented the scheduled event to cleanup.

Indeed, was surprised that Mendix decided to keep the anonymous users intact.

answered
0

Found the same behavior and needed the same solution like Nirmalkumar and Nick. So I took their advice and implemented it in the module SystemManagement that is available in the Marketplace: https://marketplace.mendix.com/link/component/113984/Tieka/SystemManagement.

answered