You should refrain from using a vacuum for the purposes of cleaning computer components, as they can generate static electricity that can destroy sensitive electronics. Compressed air is the often used to remove dust in the place of a vacuum.
Static electricity is an imbalance of electric charges within or on the surface of a material or between materials. The charge remains until it is able to move away by means of an electric current or electrical discharge. Static electricity is named in contrast with current electricity, where the electric charge flows through an electrical conductor or space, and transmits energy.A static electric charge can be created whenever two surfaces contact and have worn and separated, and at least one of the surfaces has a high resistance to electric current (and is therefore an electrical insulator). The effects of static electricity are familiar to most people because people can feel, hear, and even see the spark as the excess charge is neutralized when brought close to a large electrical conductor (for example, a path to ground), or a region with an excess charge of the opposite polarity (positive or negative). The familiar phenomenon of a static shock – more specifically, an electrostatic discharge – is caused by the neutralization of a charge.