/// <summary> /// Delete a DigitalTwinsInstance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the DigitalTwinsInstance. /// </param> /// <param name='resourceName'> /// The name of the DigitalTwinsInstance. /// </param> public static DigitalTwinsDescription Delete(this IDigitalTwinsOperations operations, string resourceGroupName, string resourceName) { return(operations.DeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a digital twin. All relationships referencing the digital twin must /// already be deleted. /// Status codes: /// 200 (OK): Success. /// 400 (Bad Request): The request is invalid. /// 404 (Not Found): There is no digital twin with the provided id. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The id of the digital twin. The id is unique within the service and case /// sensitive. /// </param> /// <param name='ifMatch'> /// Only perform the operation if the entity's etag matches one of the etags /// provided or * is provided. /// </param> public static void Delete(this IDigitalTwinsOperations operations, string id, string ifMatch = default(string)) { operations.DeleteAsync(id, ifMatch).GetAwaiter().GetResult(); }