Remove Device
Remove the specified device record from the device list.
Interface Description
Interface Type
removeDeviceParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
Return Value
javascript
true // Returns true on successful operationBasic Usage
javascript
// Remove device (device must be offline)
await apiInvoke('removeDevice', {
deviceId: 'P72578581E07'
});⚠️ Notes
- Device Must Be Offline
- Can only remove offline devices (
online: false) - Online devices cannot be removed and will throw an error
- Need to disconnect device first, then perform removal
- Can only remove offline devices (