balena.models.device.remove explanation

What exactly does this balena-sdk function do?

Does it disable the VPN on the device?

You can find more information about what this does here in its source code

Thanks for the link.

It looks like it deletes the device from Balena cloud. Is that the same as deleting a device from the dashboard?

Does the device also turn off the VPN when removed?

Hi Patrick,

Indeed deleting the device with the SDK is the same as deleting it from the dashboard. The dashboard uses the SDK itself.

The VPN is not disabled when a device is deleted. Are you looking for a way to programmatically disable the VPN in the same way it is disabled from the dashboard?


Thanks for the clarification!


Hi Patrick, VPN control is handled via a configuration variable so you can programmatically toggle it via , the config variable name is RESIN_SUPERVISOR_VPN_CONTROL

1 Like