He told the Hollywood Reporter "To me it was something I had to do for my health".
Sweden´s Prince Carl Philip and his bride Sofia, whose wedding reception Avicii DJ-ed in 2015, mourned him in a statement, saying: "We had the honor to have known him and admired him both as an artist and the beautiful person that he was".
His last statement on his website also made a promise to his fans. The song ended with a black-and-white photo of Avicii displayed on a screen alongside the words "Rest in peace".
The Swedish royal family and Prime Minister Stefan Lofven expressed their condolences over the death of Avicii, the Swedish SVT broadcaster reported.
"Nobody can deny what he has accomplished and done for modern dance music and I'm very proud of him". He also donated $1 million to the Feeding America non-profit in 2012.
In an interview, Avicii explained that he'd taken the decision because tour life was impacting on his wellbeing.
His death comes just days after he was nominated for a Billboard Music Award.
"Really excited to be back with music once again, it has been a long time since I released anything", he posted on social media.
Avicii had in the past suffered acute pancreatitis due to excessive drinking. His songs have been played more than a billion times on Spotify. He was even part of Mike Posner's megahit "I Took a Pill in Ibiza", which featured the lyrics: "I took a pill in Ibiza/To show Avicii I was cool".
"Everybody knows Avicii but very few people know Tim", Tsikurishvili said".
"And I was like, 'Whoa".
'We absolutely confirmed that there is no criminal suspicion of death, ' they explained.
His cause of death is yet to be revealed.
Heartfelt tributes poured in from fellow musicians and fans alike.
And DJ Calvin Harris tweeted: "Devastating news about Avicii, a beautiful soul, passionate and extremely talented with so much more to do".
"Rest In Peace and Superlove @Avicii", wrote Lenny Kravitz, who collaborated with the DJ on the 2011 single "Superlove", on Twitter. "God bless you Tim x".
Singer Wyclef Jean described him as "a little brother".