Rescanning will not trigger a database cleanup. You've taken the first step in enabling cleanup options, but please note that cleanup actions are performed when the Lansweeper service is started and subsequently every 24 hours. If you make any changes to your cleanup options and wish to apply them immediately, restart the Lansweeper service.