It is well-settled that to seek equity one must do equity. This is known as the clean hands doctrine or the unclean hands defense. It applies to all equity actions or proceedings. Dry Dock Sav. Inst. v. Harriman Realty Corp., 150 Misc. 860 (Sup. Ct. 1934), aff’d, 244 A.D. 793 (2d Dep’t 1935). This includes actions for an accounting, an injunction, a constructive trust, a mortgage foreclosure, an equitable lien, a partition, a rescission or reformation, a declaratory judgment, or specific performance.