I am so sorry that you lost your data. If you archived the data then you can redownload the save data in eShop. If you deleted it then I don't think you can access it. Try going into Pokemon Home and connecting with the game that you deleted your data on.