def METHOD_NAME(self):
    """erase flash via serial"""
    self.serial_needed()
    self.log.debug("Erasing...")
    subprocess.check_call("esptool.py --port {port} -b 1500000  erase_flash".format(**self._config), shell=True, cwd='..')