Up to 15 miners in Western Australia have been fired for doing the "Harlem" Shake" on the job.

Barminco, the owner of the underground Agnew Gold Mine, considered the stunt a safety issue and a breach of its "core values of safety, integrity and excellence," according to a dismissal letter obtained by the West Australian newspaper.

The miners say they were only "having a bit of fun."

A YouTube video shows eight miners wearing safety gear while performing the viral dance trend in the underground Agnew Gold Mine last week, The Associated Press reported.

Those miners and others who watched the performance but did not participate were fired, one of the workers who was let go told the West Australian.

The miners have also been banned for life from every Barminco project around the world, according to AFP.

The company has not responded to requests for a comment.