cleanup: Take the age parameter in account

The age parameter was unused till now. I updated the delete condition to take the age parameter in account.