import Mobilerun from '@mobilerun/sdk';const client = new Mobilerun({ apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted});await client.devices.esim.remove('deviceId', { subId: 0 });
Deletes the eSIM subscription identified by the subId query parameter from the device.
DELETE
/
devices
/
{deviceId}
/
esim
JavaScript
import Mobilerun from '@mobilerun/sdk';const client = new Mobilerun({ apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted});await client.devices.esim.remove('deviceId', { subId: 0 });