.. _unload_model: Unload Model ============ .. code-block:: python unload_model(self, model) **Description** This method unloads the specified model from the device, freeing up resources. **Parameters** * `model (ModelReference)`: The model reference **Returns** * `int`: Error code if any else 0 **Raises** * `Exception`: If the model reference is mismatched **Usage** .. code-block:: python :linenos: device_interface.unload_model(model_ref)