As far as ticket receipts and boarding passes, forever.
Credit card receipts, statements (getting fewer now with online bonuses), etc. are kept much shorter.
The danger with online statements is that some airlines only keep about 6 months online. Then the record is lost forever. NW is good is keeping a lot of old records online.