California Code CHAPTER 8 - Declaratory Relief Section 1061.
1061. The court may refuse to exercise the power granted by this chapter in any case where its declaration or determination is not necessary or proper at the time under all the circumstances.