15 U.S.C. § 1119 : US Code - Section 1119: Power of court over registration

      In any action involving a registered mark the court may determine
    the right to registration, order the cancelation of registrations,
    in whole or in part, restore canceled registrations, and otherwise
    rectify the register with respect to the registrations of any party
    to the action. Decrees and orders shall be certified by the court
    to the Director, who shall make appropriate entry upon the records
    of the Patent and Trademark Office, and shall be controlled