Kesha has credited her "idiot ex" for her latest single.

The singer released her new single, Delusional, on Friday.

The lyrics reference how she took inspiration from her ex-boyfriend to help her write the song.

She slams her former love as being "just another song on my setlist" before singing, "Baby you're delusional/Thinking you could ever find/Something that's as beautiful/Someone with a love like mine."

The 37-year-old has been teasing the track for a while, hinting that her ex might have something to be worried about.

Earlier in the week she tweeted, "My ex should hide on friday."

She then shared a clip snippet of the song, captioning it: "Thanks to my idiot ex. u inspired my best song yet."

The singer hasn't released any details about who her ex is, or when they split up.

Earlier in the year she told Elle how a boyfriend had broken up with her because she took someone else to one of Taylor Swift's parties.

"I had a feeling that he was in it for the wrong reasons and was a bit of a starf**ker," she told ELLE.

"I decided to test that theory and took one of my friends instead of him to Taylor Swift's party. He came over the next day and broke up with me."

She didn't name the man in question but she has been linked to health-tech entrepreneur Michael Gilvary and film producer Riccardo Maddalosso in the past year.

ON TOUR - BUY TICKETS NOW!

,

LATEST NEWS