In the line of music formats we still have vinyl going strong albeit in a niche market but cassettes have died as we don't need to analogue formats

CDs are just a digital storage mechanism and since there are much easier ways to deal with audio files which my today's standards are relatively small files it's almost certain the CD will disappear. I suppose 30 years is a good run for any format.