Delete accounts without activating


How could you delete accounts that have not yet been activated after a period of time.

Server Setup Information

  • Version of Rocket.Chat Server: 2.1.0
  • Operating System: Ubuntu Linux 16.04.6
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Yes
  • NodeJS Version: v8.11.3
  • MongoDB Version: 3.6.14
  • Proxy: nginx

Any additional Information

I have several users who for one reason or another have not been able to receive the confirmation email and it happens that when they try to re-register and their email account appears as pending confirmation. Anyway, how to eliminate those accounts that have not been activated after N days.