Cron:
0 * * * * php cleanup.php

Example links:
https://domain.com/d/abcd1234
https://domain.com/x/token
