Script which delet expired user accounts

Hello,

i´m searching a script which deletes expired useraccounts from the usermanager database.
Is that possible?
Thank´s

no ideas?
I need a solution.

How do you define “expired user”? The ones that have zero credit time left?
If yes, this command will remove all user-manager user accounts that have no uptime left:

/tool user-manager user remove [/tool user-manager user find credit-left=0]

Don’t blame me if you remove users you didn’t want to :wink:

Best regards,
Christian Meis