An example of confide is when you confess your secret crush to a friend.
Confided a secret to his friend.
Confided the task of drafting the report to her assistant.
He knew he could confide in his parents.
To confide one's troubles to a friend.
I could no longer keep this secret alone; I decided to confide in my brother.
Origin of confide
From American Heritage Dictionary of the English Language, 5th Edition