In the end I had decided to use a cron job to check every x amount of time, which handles the deletion.