Old CVR's used a tape loop of 30 mins. So it overwrites the previous info.
However accident investigators have managed to retrieve info from more than 30 mins. by clever audio processing since the erasure is not always complete.
Newer recorders record 2 hrs as some incidents had a critical event more than 30 mins. prior to tape stopping .