Twins Client. Delete 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.
Deletes a model synchronously.
public virtual Azure.Response DeleteModel (string modelId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteModel : string * System.Threading.CancellationToken -> Azure.Response override this.DeleteModel : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteModel (modelId As String, Optional cancellationToken As CancellationToken = Nothing) As Response
The id for the model. The id is globally unique and case sensitive.
The cancellation token to use.
The http response Response.
The exception is thrown when
A model can only be deleted if no other models reference it. Status codes: 204 (No Content): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no model with the provided id. 409 (Conflict): There are dependencies on the model that prevent it from being deleted.
For more samples, see our repo samples.