Your attorney can file a Request for Dismissal Without Prejudice. Although the defendant(s) might file a Memorandum of Costs to recover costs and possibily a Motion for Attorney's Fees, the chance of the defendants seeking a Judgment of Dismissal in order to collect the costs is extremely small. The defendants do not have a say in the dismissal without prejudice.
See California Code of Civil Procedure section 581.
The case is yours and you can dismiss it at any times. There is a risk of the defendant filing for costs and often we request a waiver of costs in exchange for the dismissal. Defendants will do this because they like to know there is not more expense on the matter. The statute you need is attached in full but, in pertinent part, is:
(b) An action may be dismissed in any of the following instances:
(1) With or without prejudice, upon written request of the plaintiff to the clerk, filed with papers in the case, or by oral or written request to the court at any time before the actual
commencement of trial, upon payment of the costs, if any.
(2) With or without prejudice, by any party upon the written consent of all other parties.
(3) By the court, without prejudice, when no party appears for trial following 30 days' notice of time and place of trial.
(4) By the court, without prejudice, when dismissal is made pursuant to the applicable provisions of Chapter 1.5 (commencing with Section 583.110).
(5) By the court, without prejudice, when either party fails to appear on the trial and the other party appears and asks for dismissal.
(c) A plaintiff may dismiss his or her complaint, or any cause of action asserted in it, in its entirety, or as to any defendant or defendants, with or without prejudice prior to the actual
commencement of trial.
If you liked this answer, click on the thumbs up or vote it best answer! Thanks. Eliz. C. A. Johnson Post Office Box 8 Danville, California 94526-0008 Legal disclaimer: I do not practice law in any state but California. As such, any responses to posted inquiries, such as the one above, are limited to a general understanding of law in California and not to any other jurisdiction. In addition, no response to any posted inquiry should be deemed to constitute legal advice, nor to constitute the existence of an attorney/client or other contractual or fiduciary relationship, inasmuch as legal advice can only be provided in circumstances in which the attorney is able to ask questions of the person seeking legal advice and to thus gather appropriate information.