SPOILER ALERT: This article contains details of the winner ofAmerican IdolSeason 22.

Katy Perrytook theAmerican Idolstage one last time as a judge before saying goodbye to theABCreality series competition.

The singer, alongside Luke Bryan and Lionel Richie, walked into the Season 22 finale hand in hand.

Katy Perry on last episode of ‘American Idol’ Season 22

Katy Perry on last episode of ‘American Idol’ Season 22ABC

Teenage Dream, Dark Horse, and California Gurls, were the songs that the girls performed.

Perry didnt address the viewers on her last day as a judge onAmerican Idol.

After announcing the winner of Season 22, Abi Carter performed What Was I Made For?

Katy Perry dressed as Cinderella for ‘American Idol’

which got Perry to shed some tears.

Watch the final moments of Perry onAmerican Idolin the video below.

Since Season 16, the judges panel has remained unchanged until Perrys departure.

ABC has not announced who will take Perrys spot when the show returns for Season 23.

Ahead of the finale, Perry was already anticipating she would be crying at anything that happened.

I think I will be crying at anything, Perry said in an interview posted byKABC.

Its been a beautiful journey and I love watching these kids grow and becoming this big beautiful patchwork quilt.