A motion to quash is often used for suppressing service of a summons/complaint or warrant or other legal proceedings (discovery of evidence) due to such things as lack of jurisdiction, wrong identification of a person, unlawful basis, keeping confidential files secret, etc.