Once the wrong BIOS password is entered, almost all laptops generate a hash code. Once the battery is removed, this will erase the BIOS password as well as reset all the settings.
Removing the battery will help if you want to delete your forgotten password.