Yes, you can disconnect a specific data session by deleting it. This can be done through the Soracom User Console, the Soracom API, or the Soracom CLI.
CAUTION
Deleting a session will immediately terminate all active connections to and from the device.
If your device is deployed remotely, verify that it is configured to automatically reconnect and establish a new session. If the device does not attempt to reconnect automatically, you will lose connectivity and may need physical access to the device to restore the connection.
Method 1: User Console
You can manage and delete sessions directly from the User Console. For more detailed information on monitoring your connections, please refer to the Session Status documentation.
To disconnect a session via the console:
- Log in to the User Console.
- Check the box next to the IoT SIM you want to disconnect.
- Click the Actions menu and select Delete session.
Method 2: Programmatically
You can also delete a session using the Soracom API or the command-line interface.
Using the API
To disconnect a session via the API, use the deleteSimSession endpoint.
Using the CLI
Execute the following command, replacing <SIM_ID> with the SIM ID or IMSI of the target IoT SIM:
soracom sims delete-session --sim-id <SIM_ID>
For additional information on installing and using the command-line tool, please refer to the Soracom CLI README.