Clean Ids after delete.
Add logger.