before/after delete hooks