N.M. Stat. § 44-6-7
Discretionary.
The court may refuse to render or enter a declaratory judgment or decree where
such judgment or decree, if rendered or entered, would not terminate the uncertainty or
controversy giving rise to the proceeding.
N.M. Stat. § 44-6-7