Twins Client. Decommission Model(String, CancellationToken) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decommissions a model synchronously.
public virtual Azure.Response DecommissionModel (string modelId, System.Threading.CancellationToken cancellationToken = default);
abstract member DecommissionModel : string * System.Threading.CancellationToken -> Azure.Response override this.DecommissionModel : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DecommissionModel (modelId As String, Optional cancellationToken As CancellationToken = Nothing) As Response
The Id of the model to decommission.
The cancellation token.
The http response Response.
The exception is thrown when
When a model is decommissioned, new digital twins will no longer be able to be defined by this model. However, existing digital twins may continue to use this model. Once a model is decommissioned, it may not be recommissioned.
For more samples, see our repo samples.