You can disconnect both and the ECU will default to a factory setting that makes the vehicle run reasonably well but it won't be quite as smooth and will use more petrol.

Cheers