What's unethical is saying you'll do something and then not doing that.
In your example, the "ethical" way to violate a non-compete is to redact it from the original contract.
I'm not saying you're the worst person ever, but littering is unethical, and so is saying you'll do something and then not doing it (or vice versa).