These petrol and diesel vehicles will be axed from UK streets within years under new legislation.