Here are some example commands you can use with the Fastboot Erase Tool:
While it’s command-line based, we will show you how to turn it into a simple point-and-click eraser. fastboot erase tool download
The official way to use fastboot "erase" functions is through the standard Android SDK Platform-Tools . This package contains the fastboot executable used to interface with a device's flash memory. Here are some example commands you can use