Delays on the Pakenham line have been cleared, following a level crossing accident on Friday afternoon.

A train and truck collided at Webster Street in Dandenong around 3pm. Both the Cranbourne and Pakenham lines were suspended.

The Cranbourne line was cleared after around two hours, while services on the Pakenham line only returned to normal around 7.45pm.

A Metro spokeswoman said the clean-up took longer than expected and that peak time commuters were affected on the Pakenham line.