No mechanoreceptor potential C (NompC) is a major mechanotransduction channel with an important role in sensing of external mechanical stimuli by insects, which help these organisms to avoid injury and adapt to environmental changes. To explore the biological functions of NompC in Bactrocera dorsalis, a notorious agricultural pest, we successfully generated NompC knockout strains using clustered regularly interspaced small palindromic repeats (CRISPR) / CRISPR‐associated nuclease 9 (Cas9) technology. BdorNompC knockout led to an adult lethal phenotype, with approximately 100% mortality at 3 d after eclosion. Morphological observation revealed that the legs and wings of BdorNompC knockout insects were deformed, while behavioral assays showed that the locomotion was impaired in both adults and larvae, relative to that of the wild‐type strain. Moreover, BdorNompC knockout reduced gentle‐touch response in larvae. These results suggest that BdorNompC is critical for B. dorsalis survival, and that this mechanosensation channel represents a potential new target for pest control agents. Our findings also represent novel evidence indicating that insect NompC is involved in modulating adult wing and leg morphology.