balena-sdk-python
balena-sdk-python copied to clipboard
Calling sdk.models.device.delete('') will delete all devices the user has access to.
All version of Python SDK from 13 to 15 have a bug when calling sdk.models.device.delete with an empty string UUID this would trigger a deletion of all accessible devices. If you call it with a too short UUID that matches several devices UUID, this would also trigger the deletion of all these devices.
Has been fixed on SDK version: https://github.com/balena-io/balena-sdk-python/pull/371 and from 15.0.1 a deletion by UUID will only delete a single device
Should we close this now @otaviojacobi ?