I would keep the box if it’s a rare or a collectors’s/limited/anniversary edition item. Otherwise, I throw it away. I do try to sell if possible such as a factory plastic pistol case.
I will have to say that I still have the cardboard box and foam from my Anschutz 1827F. Probably because it’s my most expensive factory gun.