A HGV ploughed into the canopy of a Pontefract petrol station on Monday.
The Prestons of Pottos lorry smashed into the Co-operative and BP garage forecourt on Ackworth Road at around 2pm.
Pontefract firefighters were called to the scene and cordoned off the area. The driver was not hurt in the crash.
Watch commander Andy Thornton said: “An HGV had collided with the canopy of the petrol station – the vehicle was too tall to fit underneath it.
“We cordoned off the area, evacuated the premises and used an isolation switch to turn off all the petrol pumps. We also removed the HGV’s battery to minimise any risk.
“A structural engineer was called to assess the damage before the lorry could be removed.
“The incident was caused by human error – the vehicle was slightly too tall to fit.”
A Co-operative spokeswoman said the filling station and shop had now reopened. She added: “It was closed for five hours while some work was done to the roof, but was open again by 6.45pm that evening.”