its covering only soft delete as of now.. thats cos i added it to delete_complete hook
you can add to editpost_delete_start
to cover for hard deletes also but then add the can_moderate checks also as it might..(i use the word might) happen that the pm might be sent when the actual deletion errors out due to say a permission prob.. highly unlikely but well on my board i give only soft delete permissions so i didn't take the chance.
but yeah inserting above code to
editpost_delete_start should cover for both the soft and hard deletes