afterDelete lifecycle method