If I was the OP I'd use FBI to delete the Leaked Pokemon Sun and Pokemon Moon games +their tickets and just use FreeShop to download the PROPER releases. Unless OP wants to risk getting their 3DS banned.
If he knows what he is doing with FBI it is fine to delete the ticket from there, otherwise just delete game from system settings like you normally would with an unhacked system and just use TikSweep to delete the unused ticket, it will automatically do it for you when you launch it then reinstall game using freéShop..