Civil Procedure II
A plaintiff can voluntarily dismiss his case without a court order if done before either an answer or summary judgment motion is filed. Rule 41(a)(1)(A). However, most states allow dismissal after a motion to dismiss.
A suit can also be dismissed by stipulation by both parties. This is without prejudice unless stipulated otherwise.