I am trying to configure sql db where users must verify their email address. I am wondering if there is a way to automatically delete users in sql db who tried to register (send their information) but did not confirm their email address after x minutes.
The script I wrote inserts its information directly into db, and then updates the column on db to "ACTIVE" after confirmation by users, so I do not insert data after they are activated, but earlier with the status of "NON_ACTIVE". Then, when they confirm their email address, this status goes to ACTIVE.
therefore, if users send their information but do not confirm their email address, their data is still in the database. I need something that will automatically delete the line with the status "NON_ACTIVE" after x minutes when they send their information. I have another column in the database with their exact time and date of dispatch.
any ideas?
user849137
source share