"To dismiss the lawsuit" means to officially end or terminate a legal case. It means that the court decides the case is no longer valid or has no legal merit to continue. Full definition
The lower court dismissed the lawsuit on the basis that plaintiff had not properly demonstrated that he had standing to bring the lawsuit. (blog.internetcases.com)
Today a circuit court judge dismissed the lawsuit, ruling that the plaintiffs lacked standing to sue because they could not show how they were harmed by the law. (cato.org)
A federal court refused to dismiss a lawsuit challenging the process. (nystateofpolitics.com)