When using vehicles, unnecessary noise and avoidable exhaust pollution are prohibited. In particular, it is prohibited to run vehicle engines unnecessarily and to close vehicle doors excessively loudly. Unnecessary driving to and fro within built-up areas is prohibited if it causes a nuisance to others.
In Germany:
§30 (1), StVO