How can deity take away powers it grants to a cleric?

I’m playing cleric of life domain that worships Sune.
During the game I’ve faced a situation when I needed to interrogate a npc.
During interrogation my character hit an NPC in face several times in order to make it more cooperative.
But another player said that such actions are not allowed by Sune as far as she is good goddes, and thus she can take away powers she gave.

Is that correct? I also said that it’s up to DM, but I wonder if there is a game mechanic of possibility for cleric to lose powers due to inappropriate behaviour