If the bootloader is locked , fastboot only accepts a limited set of commands (e.g., flashing lock/unlock ), and erase commands are rejected.
While manual commands are standard, several specialized tools automate the process: fastboot erase tool password best
Yes, indirectly . It erases the partition containing the password. It is a factory reset, not a bypass. If the bootloader is locked , fastboot only