# CFWのアンインストール
## Required Reading
This will completely remove CFW from your console, including boot9strap and Luma3DS, for the purpose of restoring the console to stock.
Any unsigned (illegitimate) games will be rendered unusable and will be removed during this process. Use a [save manager](https://github.com/FlagBrew/Checkpoint/releases/latest) to back up any saves that you care about.
::: danger
If you're removing CFW because:
- You want to re-install it
- You want to change SD cards
- Your SD card was lost or corrupted
- One of your games is broken
- One of your system applications is broken
- Your console is unable to boot to HOME Menu
**STOP!!!** Uninstalling custom firmware is an unnecessary risk that will at best waste your time and at worst **BRICK** your console. A better idea would be to ask for help at [Nintendo Homebrew on Discord](https://discord.gg/MWxPgEp).
:::
::: danger
If you have done ANY of the following:
- [Changed the region](region-changing) of the console
- Installed a custom keyboard
- Installed a custom HOME Menu (_not_ a custom theme)
- Manually changed the encryption key (`movable.sed`) of the console
- Unbanned the console
then uninstalling CFW **WILL BRICK YOUR CONSOLE**. If this applies to you, [restore a clean NAND backup](godmode9-usage#restoring-a-nand-backup) before continuing.
:::
::: warning
These instructions will only work on consoles with a Luma3DS version of 8.0 or higher. If you have an older version of Luma, you must upgrade your setup before following these instructions. Follow [this page](checking-for-cfw) to find your upgrade instructions.
:::
## What You Need
- The latest release of [Luma3DS](https://github.com/LumaTeam/Luma3DS/releases/latest) (the Luma3DS `.zip` file)
- The latest release of [GodMode9](https://github.com/d0k3/GodMode9/releases/latest) (the GodMode9 `.zip` file)
- The latest release of [DSiWare Uninstaller](https://github.com/MechanicalDragon0687/DSiWare-Uninstaller/releases/latest)
- [safety_test.gm9](/gm9_scripts/safety_test.gm9)
## Instructions
### Section I - Prep Work
1. Power off your console
2. パソコンにSDカードを入れます
3. Copy everything from the Luma3DS `.zip` to the root of your SD card
4. `GodMode9.firm` を GodMode9の `.zip` から取り出し、SDカードの `/luma/payloads/` フォルダにコピーします。
5. `gm9`フォルダをGodMode9`.zip`からSDカードのルートにコピーします。
6. Copy `DSiWareUninstaller.3dsx` to the `/3ds/` folder on your SD card
7. Copy `safety_test.gm9` to the `/gm9/scripts/` folder on your SD card
8. Reinsert your SD card into your console
### Section II - DS Mode Tests
The purpose of this section is to check whether built-in DS mode applications will continue to work once CFW is uninstalled. If you skip this section, DS mode or its functions may be inaccessible until CFW is reinstalled.
#### DS Connection Settings Test
1. Power on your console
2. Launch System Settings on your console
3. Navigate to `Internet Settings` -> `Nintendo DS Connection Settings`, then click OK
4. You should boot into the Nintendo DS Connection Setup menu
- If your console displays the Japanese version of Flipnote Studio, a black screen, or an error message, the test has failed
5. Power off your console
#### DS Download Play Test
1. Power on your console
2. Launch the Download Play application (![](/images/download-play-icon.png){height="24px" width="24px"})
3. 「ニンテンドーDS」を選択
4. If your console loads into a "Download software via DS Download Play" menu, the test was successful
- If your console displays the Japanese version of Flipnote Studio, a black screen, or an error message, the test has failed
5. Power off your console
::: warning
If either of these tests has failed, DS mode, DS Download Play, and/or DS Connection Settings may be inaccessible once CFW is uninstalled! You should [fix DS mode](troubleshooting-post-install) before continuing.
:::
### Section III - Safety Test
The purpose of this section is to verify that the console will boot and that critical system functions, like System Settings and the keyboard, will work once CFW is uninstalled. **If you skip this section, you may BRICK your console!**
1. Press and hold (Start), and while holding (Start), power on your console. This will launch GodMode9
2. If you are prompted to create an essential files backup, press (A) to do so, then press (A) to continue once it is complete
3. RTC日付/時刻を修正するには、(A) ボタンを押し、日付や時刻を設定してください。終わったら、(A) を押して続けてください。
- Note that, if you had to fix the RTC date and time, you will have to fix the time in the System Settings as well after following this guide
4. (Home) ボタンを押してアクションメニューを呼び出します
5. "Scripts..."を選択します
6. Select "safety_test"
7. Read the text on-screen and press (A) to continue
8. You should boot into the regular 3DS HOME Menu (any custom theme is irrelevant). If you do, continue these instructions
- If you do not boot into the regular 3DS HOME Menu (black screen, error screen, etc.), uninstalling CFW **WILL BRICK YOUR CONSOLE!**
9. Launch System Settings on your console
- If the console crashes at this point, the test has failed
10. Select "Other Settings"
11. Select "Profile"
12. Select "User Name"
13. If you are able to enter a new user name, the test was successful
- If the keyboard does not appear, the screen freezes, or the console crashes, the test has failed
14. Power off your console
::: danger
If you do NOT boot into the regular 3DS HOME Menu, or System Settings / your keyboard is inaccessible, **DO NOT continue with these instructions**! Join [Nintendo Homebrew on Discord](https://discord.gg/MWxPgEp) and ask (in English) for someone there to assist you.
:::
### Section IV - NAND Backup
1. Press and hold (Start), and while holding (Start), power on your console. This will launch GodMode9
2. (Home) ボタンを押してアクションメニューを呼び出します
3. "Scripts..."を選択します
4. "GM9Megascript"を選択します
5. "Backup Options"を選択します
6. "SysNAND Backup"を選択します
7. (A) を押して確認します
- This process will take some time
- If you get an error, ensure you have at least 1.3GB of free space on your SD card
8. Bキーを押してメインメニューに戻ります
9. Select “Exit”
10. (Home) ボタンを押してアクションメニューを呼び出します
11. Select "Poweroff system" to power off your console
### Section V - Removing illegitimate content
::: warning
This section will remove illegitimate content, like homebrew and dumped cartridges. If you have save data that you care about, back it up with a save manager before continuing!
:::
1. Power on your console
2. Launch System Settings on your console
3. Navigate to Data Management > Nintendo 3DS > Software
4. In this list of software, delete any non-Nintendo content you installed while using CFW
- This includes common system software such as FBI, Anemone3DS, Luma Updater, Homebrew Launcher, Checkpoint, and others, along with any games and titles that you did _not_ install from the eShop
5. `データ管理` -> `DSiWare データ管理` の順に移ります。
6. In this list of software, delete any non-Nintendo content you installed while using CFW
- This includes software such as TWiLightMenu++, along with any games and titles that you did _not_ install from the eShop
- Failure to remove all CFW software from both the 3DS and DSiWare sections before uninstalling CFW may prevent or disable access to the Data Management menu after uninstalling CFW, which will make it difficult to re-install CFW in the future
7. Exit the System Settings application
8. Launch the Download Play application (![](/images/download-play-icon.png){height="24px" width="24px"})
9. 画面が表示されるまで待ちます
10. (Lボタン) + (十字キー下) + (Select) を同時に押してRosalina menu を開きます
11. "Miscellaneous options"を選びます。
12. Select "Switch the hb. title to the current app."
13. (B) ボタンで続行します
14. (B) を押してRosalinaメインメニューに戻ります
15. (B) を押してRosalinaメインメニューを終了します。
16. Homeボタンを押しダウンロードプレイを閉じます。
17. Launch the Download Play application (![](/images/download-play-icon.png){height="24px" width="24px"})
18. Your console should load the Homebrew Launcher
19. Launch DSiWare Uninstaller from the list of homebrew
20. Follow the prompts and allow the program to uninstall
21. Once the process has succeeded, exit the Homebrew Launcher and power off your console
### Section VI - System Format
This section will ensure that all illegitimate tickets are removed, allowing eShop to work normally. This will remove all content from the 3DS and log you out of your NNID. Keep in mind that your console's encryption key will be shuffled, meaning that any old data will be rendered inaccessible, even if you have a backup of your SD contents.
1. Power on your console
2. Launch System Settings on your console
3. Navigate to Other Settings -> Next Page (until the final page) -> Format System Memory
4. Follow the prompts to format your 3DS
### Section VII - Running Uninstall Script
::: warning
This is your final opportunity to verify that all safety steps above have been followed! Please ensure that you have followed all sections on this page, **especially** `Section III - Safety Test`, before continuing.
:::
::: danger
If you're removing CFW because:
- You want to re-install it
- You want to change SD cards
- Your SD card was lost or corrupted
- One of your games is broken
- One of your system applications is broken
- Your console is unable to boot to HOME Menu
**STOP!!!** Uninstalling custom firmware is an unnecessary risk that will at best waste your time and at worst **BRICK** your console. A better idea would be to ask for help at [Nintendo Homebrew on Discord](https://discord.gg/MWxPgEp).
:::
1. Press and hold (Start), and while holding (Start), power on your console. This will launch GodMode9
- If you instead see the Luma3DS chainloader, use the D-Pad and the (A) button to select GodMode9
2. (Home) ボタンを押してアクションメニューを呼び出します
3. "Scripts..."を選択します
4. "GM9Megascript"を選択します
5. Select "Hax Options"
6. Select "Un-install Hax"
7. メッセージが表示されたら、(A) ボタンを押して続行します
8. (A) ボタンを押し、表示されるコンボを入力することで、 SysNAND (lvl3) への書き込みを許可します
9. (A) で続行します
10. Bキーを押してメインメニューに戻ります
11. "Exit"を選択します。
12. (A) ボタンを押すとNANDへの書き込みを再ロックできます
13. Press (Start) to reboot your console
___
::: tip
All custom firmware has been removed from your console.
:::
::: info
You can now remove any extra files and folders from the root of your SD card that are _not_ the `Nintendo 3DS`, `DCIM`, or `private` folders.
:::