For the providers covered by Article 6, traffic data must generally be erased or anonymised when no longer needed to transmit a communication, subject to the article’s permitted uses and applicable legal exceptions. Billing data may be processed until the period for legally challenging or pursuing payment ends. Marketing or value-added-service uses have further conditions, including consent where required.
Source: ePrivacy Article 6.