Compose - removeProperty(variables('Message')['Appointment'],'CustomerInfo')
Firstly, I have initialized variable and then used compose action with removeproperty(variables('emo')['appointment'],'customerInfo') as below:

Then I again used compose as below with removeproperty(variables('emo'),'appointment'):

Then I used Compose 3 for combing both composes as below using union(outputs('Compose_2'),outputs('Compose')) :

Output:


OR: If you have integrated account Reference. Hope this clears all your doubts.