https://www.canajunfinances.com/2020/06/29/a-guide-to-understanding-the-tax-considerations-when-cashing-out-an-resp/
A Guide to Understanding the Tax Considerations When Cashing out an RESP