public async Task <bool> DeleteProductAsync(AzureSphereTenant tenant, AzureSphereProduct product, CancellationToken cancellationToken) { Console.WriteLine("DeleteProductAsync()"); var jsonString = await MethodAsync($"v2/tenants/{tenant.Id}/products/{product.Id}", Method.DELETE, null, null, cancellationToken); Console.WriteLine(jsonString); var operation = new AzureSphereOperation(JObject.Parse(jsonString)); return(await GetAsyncOperation(tenant, operation.OperationId, cancellationToken)); }
public async Task DeleteProductAsync(AzureSphereTenant tenant, AzureSphereProduct product, CancellationToken cancellationToken) { await DeleteAsync($"v2/tenants/{tenant.Id}/products/{product.Id}", cancellationToken); }