How to make callback when deleting actor?

Any solution for this?