It is possible to make a sale of part of canadian corporation (including assets and liabilities) to a foreign company. Be ready for being taxed for this in Canada.
Amount on a contract will be your personal income in capital gains. Taxation depends on more conditions.
How does it technicaly work?
1. Sign contract of selling a part of corporation to another corporation
2. Move inventory to a foreign storage (it can not stay︀ in Canada)
3. Wire money from account of canadian company to a business bank account︁ of Panamian company
You have to pay taxes on capital gains income in Canada from︂ amount on contract. If you will try to use amount lower than is difference of︃ assets and liabilities, you can have a problem to be investigated for a tax fraud.︄
As canadian company will have no assets and liabilities after this transaction, you just dissolve︅ a canadian company.