A filter is a device used to remove unwanted parts/impurities from something. The contaminants include dirt, dust, and other debris that can cause damage to the machine or even its components.