i found out how to do it if you have digital x and y, you have to go to systems settings then go to data management then go to 3ds then software then press pokemon x or pokemon y after that press delete then it'll ask if you want to backup your save file