When you have done something really bad which you hope no
one ever finds out about, but you inexplicably and unintentionally hand the evidence to the police/the
boss/you
wife and suffer the consequences.
Doing a Glitter refers to Garry Glitter, aging UK glam rock star, who handed his
PC into the repair shop as it had crashed, but he forgot it contained hundreds of pictures of child
pR0n. They called the
Cops. He was
soon convicted as a sex offender and jailed.
Not to be confused with "Up the Glitter" which is what he was supposed to have asked the underaged girl in Vietnam, which was where he ended up after leaving the UK. Again he was convicted and jailed.