async unregisterDevice(getDeviceId) {
    await this._lockfile.exclusively(async () => {
      const deviceId = await safeAsync(getDeviceId);
      if (deviceId) {
        this._deleteDevice(deviceId);
      }
    });
  }
@param {string|Function} getDeviceId
@returns {Promise<void>}