"To dismiss the complaint" means to reject or not consider a formal protest or grievance made by someone. It is the decision made by a judge or person in authority to disregard the complaint and not take any further action on it. Full definition
Not surprisingly, the defendants applied for an order dismissing the complaint on the basis that, among other things, the action lacked merit and was bound to fail. (slaw.ca)
The trial court dismissed the complaint with prejudice and the plaintiff appealed. (paulporvaznik.com)
The defendant moved to dismiss the complaint for failure to state a claim, and the district court granted the motion with prejudice. (wiappellatelaw.com)