Ensure you are running the Command Prompt from inside the exact folder where fastboot.exe is located.

Extract the downloaded platform-tools.zip file to an easily accessible folder on your computer, such as C:\platform-tools . Step 2: Boot Android into Fastboot Mode Turn off your mobile device completely.

Download the ZIP file for your operating system from the links above.

What of Android device are you working with?

This means your PC cannot detect your phone. Check your USB cable, try a different USB port (prefer USB 2.0 over 3.0), and reinstall your OEM USB drivers.

If you prefer a Graphical User Interface (GUI) instead of typing commands, manufacturers provide proprietary tools that include built-in fastboot erase functions: Mi Flash Tool

Return to the main Settings menu, locate , and toggle on USB Debugging .