how full earse emmc


i have i9082 that change emmc but before me work in phone
how full erase emmc ?and after full erase which file respectivetly write in the phone
after repair direct emmc, phone go to download mode or after repair emmc repeat repair via j-tag tool?

thanks