Skip to content

Remove Device ​

Remove the specified device record from the device list.

Interface Description ​

Interface Type ​

removeDevice

Parameters ​

ParameterTypeRequiredDescription
deviceIdstring✅Device ID

Return Value ​

javascript
true  // Returns true on successful operation

Basic Usage ​

javascript
// Remove device (device must be offline)
await apiInvoke('removeDevice', {
    deviceId: 'P72578581E07'
});

⚠️ Notes ​

  1. 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

Cooperation: try.catch@foxmail.com