I expect that, to be ethically consistent, this developer will also return all salary or payments he received while creating this now-deleted code.<p>I think leaving a job is a better protest than doing damage to your employer. And perhaps for his next contract, he might insert a clause limiting what his code can be used for. In limiting the utility of the code he sells, I expect he'd be taking a lesser pay rate for it.