An Unlawful Detainer (Eviction) is for possession only.
If the tenants leave after they have been served the Unlawful Detainer, we must dismiss the case. There are no refunds once a case has been filed with the court.
You may seek a small claims for rents owed after you have recovered the property.