A music video with “graphic” gay sex has been pulled from YouTube after racking up nearly a million views.

The video which accompanies “House of Air” by Australian singer Brendan Maclean was branded not suitable for the video sharing platform.

The clip featured “hardcore” gay sex, urination, defecation and bondage.

Maclean coined the video as a piece of art intended to celebrate gay history, but YouTube banned the video after 10 days citing that the “video has been removed for violating YouTube’s policy on nudity or sexual content.”

After the video’s debut of January 30th, Facebook banned it immediately but it is still available on Vimeo and a separate website intended just to host the video and behind the scenes footage.

Maclean has said that he did not expect the video to have such a long life on YouTube.

“We put it on YouTube as a joke. We had bets on when it would be pulled down — nobody won,” he quipped.

The singer said that the video was a “remarkable” idea and he is proud of accomplishing it.

Maclean said: “This was never a ‘marketable’ idea, but it was an original one that I cared about. Was it for everyone? Absolutely not. Has it been the most success I’ve had with anything ever? Absolutely.

“This whole project has been about looking at topics, sounds and visuals that kind of just entertained me. What a surprise that the advice about not trying to please everybody has been true this entire time, I just had to believe it.”

The singer said he was shocked and upset by some of the negative reaction, despite acknowledging the explicit nature of the video.

“I knew people would be ‘grossed out’ by some scenes but to see this white hot fury, the homophobia, the anti-semitism — none of us are Jewish anyway, but that’s the alt-right for you — and such kind of shook us all.

“Some days I just burst into tears, particularly when gay artists said I’d let down the community. I see now that people were mad that we displayed kink and fetish in a joyful manner,” he added.