Cal. Civ. Code § 3368
Preventive relief is given by prohibiting a party from doing that which ought not to be done.