It depends on whether you bought books to learn or bought books to solve.
There are a vast number of books that I purchased not for any interest in the topic, but to solve a particular problem. I have zero interest in understanding Docker. I find it tedious. But I do have a book on it as I did need to know it at some point.
I wouldn’t buy that book today, as AI means I no longer need to know Docker.