deviceStorage.deleteDevice

Boolean deviceStorage.deleteDevice(String deviceId)

Remove a device from the list of devices

Params

parameter type description
deviceId deviceId Id string used to look up a specific device

Output

type description
Boolean Returns true if device was successfully deleted, otherwise false

Examples

DeviceStorage deviceStorage = new DeviceStorage();
Device device = new Device("10.10.10.10", "80", false, "username", "password");

deviceStorage.deleteDevice(device.authority);