As the technology is progressing, these things are becoming 'a thing of the past' now. I hardly remember when did I last use the DVD for a movie. The only use remained these days is to have Operating System installed through CDs or DVDs. This is also changing now. The whole storage is moving to cloud now.
Books are rather a different option. You can read them anytime, anywhere you like. No software or machine is needed to read them. So I guess you can do away with CDs or DVDs but not the books.