I'm not too sure about other online banks, but with mine, they advise me to keep printed copies, 'cos they're only accessable for up to 12 months, after that, they're history.
If you're only keeping them for personal reasons, I would have thought that a couple of years would be fine.
If like me, you're self-employed, I would advise a few years longer.