To delete a train: right-click the train and choose Train > Delete. The train is permanently erased from the layout.
To delete a car: right-click the car and choose Delete or Cut.
These actions are undoable.