How can hook some code before deleting a comment?
Strange enough, but there is no predelete hook present with Drupal 7 core, or even not provided by the entity module.

However the good news is Drupal 8 has this feature!