CIC
Canon 988
Book IV. The sanctifying function of the Church
Sacraments
Code of Canon Law
English§1. A member of the Christian faithful is obliged to confess in kind and number all grave sins committed after baptism and not yet remitted directly through the keys of the Church nor acknowledged in individual confession, of which the person has knowledge after diligent examination of conscience.
§2. It is recommended to the Christian faithful that they also confess venial sins.