When a written instrument, or the record thereof, may cause injury to a person against whom such instrument is void or voidable, such instrument, in an action brought by the party injured, may be adjudged void and the same ordered to be delivered up for cancellation and the record thereof canceled, whether or not extrinsic evidence is necessary to show its invalidity.
N.D.C.C. § 32-04-24