Details of how DJ Avicii died have been released by an American news outlet.

The dance music supremo - real name Tim Bergling - is said to have taken his own life by cutting himself, TMZ reports.

Following his death in Oman on April 28, Avicii's family alluded that he had taken his own life after struggling to find peace.

Avicii at a basketball game in 2013

Avicii's body was found in his hotel bathroom at the luxury resort of Muscat Hills, where fans had spotted him and taken pictures with him shortly before his death, reports The Mirror .

Following his death, his family published a heartbreaking statement published on Aftonbladet .

They wrote: "Our beloved Tim was a seeker, a fragile artistic soul searching for answers to existential questions.

"An over-achieving perfectionist who travelled and worked hard at a pace that led to extreme stress.

"When he stopped touring, he wanted to find a balance in life to be happy and be able to do what he loved most – music."

Avicii accepts the favorite electronic dance music artist award at the 41st American Music Awards in Los Angeles

Avicii had previously spoken of his fear of dying if he continued to fly around the world to perform night after night in the biggest clubs.

He had decided to quit touring two years ago after struggling with painful health conditions, including acute pancreatitis in part caused by his heavy drinking.

He'd also needed to have his gallbladder and appendix removed after experiencing agonising stomach pain and appendicitis, as at one point he was existing on booze, Red Bull, cigarettes and fast food.

In 2016 he told Billboard: "The scene was not for me. It was not the shows and not the music. It was always the other stuff surrounding it that never came naturally to me.

"I'm more of an introverted person in general. It was always very hard for me. I took on board too much negative energy, I think."

Avicii takes a selfie on Table Mountain, South Africa

In a newly rediscovered documentary following Avicii as he travelled around the world to perform, the musician hauntingly told how he would die if he continued living his life at such a frenetic pace.

"I have told them this. I won't be able to play anymore," he told producers in the 2016 documentary Avicii: True Stories, which was this week removed from Netflix without warning.

"I have said, like, 'I'm going to die.' I have said it so many times. And so I don't want to hear that I should entertain the thought of doing another gig."

The exhausted star had done 813 shows in eight years, and was disappointed by his fans' reaction when he eventually quit touring.

"When I decided to stop, I expected something completely different," he said in the TV special.

"I expected support, particularly considering everything I have been through. I have been very open with everyone I work with, and everyone who knows me.

"Everyone knows that I've had anxiety and that I have tried. I did not expect that people would try to pressure me into doing more gigs.

"They have seen how ill I have felt by doing it, but I had a lot of push-back when I wanted to stop doing gigs."

Even Tim's own friends predicted he would die because of his heavy drinking and stressed-out lifestyle.

Days after his death, his heartbroken girlfriend penned an emotional letter revealing their love story.

Completely baring her soul, Tereza Kačerová shared fond memories of her relationship with the DJ on Instagram.

In a lengthy post, Tereza said she hopes her son, Luka, remembers Avicii, detailed their romantic first date and spoke of the "physical pain" she's felt since his death.

Tereza's statement begins: "Dear Tim, I've spent the last days waiting to wake up, waiting for someone to tell me that this is some sick joke, some awful mistake. I think it's finally settling on me now and I will truly never get to see you again.

"The first couple of days I harassed your friends (are they SURE IT'S REAL?!, demanding proof, WHERE ARE YOU NOW?!) and googled articles to read that they had it all wrong. Every time I saw 'RIP' and 'Avicii' together in one sentence or an end date to your life, I felt shock all over again.

Avicii with girlfriend Tereza Kacerova

"When I saw they had changed your bio on Wikipedia from 'is' to 'was', I sobbed. I'd stare at it for minutes at a time, trying to decipher why it says that you died on April 20, 2018. It didn't make any sense. You are too young and wonderful and I love you too much for you to have that written by your name."

In the heartbreaking letter, she went on to say that she took Avicii's sheets and pillows home so she could sleep in them.

* Samaritans (116 123) operates a 24-hour service available every day of the year. If you prefer to write down how you’re feeling, or if you’re worried about being overheard on the phone, you can email Samaritans at jo@samaritans.org