• removeDevice(devId: RemoveDeviceParams, reset: boolean): Promise<boolean>
  • Remove either a gateway or a sub device

    Returns

    Function's result

    Example

    const res = await iot-device-sdk.removeDevice({ devId: "ebc2e6912054fa2a03ws5h" }, true)
    console.log(res)

    Parameters

    • devId: RemoveDeviceParams

      device id to remove

    • reset: boolean

      need to factory reset

    Returns Promise<boolean>