Ok.
Canon Law:
Can. 988 §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.
vatican.va/archive/ENG1104/__P3H.HTM
Catechism:
1456 Confession to a priest is an essential part of the sacrament of Penance: "All mortal sins of which penitents after a diligent self-examination are conscious must be recounted by them in confession, even if they are most secret and have been committed against the last two precepts of the Decalogue; for these sins sometimes wound the soul more grievously and are more dangerous than those which are committed openly."54
1497 Individual and integral confession of grave sins followed by absolution remains the only ordinary means of reconciliation with God and with the Church.
scborromeo.org/ccc/p2s2c2a4.htm#VII
And I will add the Compendium as a bonus…
- Which sins must be confessed?
1456
All grave sins not yet confessed, which a careful examination of conscience brings to mind, must be brought to the sacrament of Penance. The confession of serious sins is the only ordinary way to obtain forgiveness.
vatican.va/archive/compendium_ccc/documents/archive_2005_compendium-ccc_en.html
Again we are only talking about mortal sins not venial.
Now are there some exceptions to such? Yes - various ways that such becomes impossible - such as some brain injury or never remembering things despite a devout examination or the person is dying and has not time (though if they live they are to then confess), in certain cases of scrupulosity, etc.etc. But these are exceptions.
The above is the only ordinary way.