Urging his fans to take the same action should they have any similar concerns, he said: "Please don't be foolish like me. Get yourself checked!".
The actor - who posted a picture of himself with a plaster on his nose from where the growth had been removed - added: "And USE sunscreen!!!".
The plaster had been visible earlier in the week on Tuesday, when Hugh was seen out riding in New York.
Hugh is not the first celebrity to have urged fans to take necessary precautions when it comes to fighting cancer.
In June this year, 64-year-old actor Samuel L Jackson encouraged men to talk more about cancer and other illnesses.
"Guys don't talk about their health issues, unless they've got a sprained ankle," he said.
"We'll talk about our injuries but we won't talk about our illnesses, so I think it's time we do that."
The actor said he was motivated to put his weight behind a charity named One For The Boys after he learnt that friends had secretly coped with cancer without telling anybody.
He said: "When they started talking about it, I realised most guys don't talk to other guys about what their medical conditions are - especially cancer conditions.
"And most guys think the only cancer guys get is prostate cancer, or they look at TV and see it as basically a woman's problem, but it's not.
"So I realised that we do really need to make men aware of the fact that cancer is a very serious thing for guys."
Meanwhile, it has been reported that Hugh has entered negotiations with Twentieth Century Fox about returning for another installment of The Wolverine.
According to Deadline, Director James Mangold is in talks with the film corporation about writing another Wolverine film and Lauren Shuler Donner is being lined up to return and produce the film again, after her work on on 2009's X-Men Origins: Wolverine and 2013's The Wolverine.
The storyline for the upcoming project is being kept under wraps, but some believe the plot could follow on from the character's antics in next year's hotly anticipated X-Men: Days of Future Past.
- Dailymail