We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90012f0 commit 804bd5fCopy full SHA for 804bd5f
source/Public/Warehouse/Remove-FabricWarehouse.ps1
@@ -44,8 +44,14 @@ function Remove-FabricWarehouse
44
if ($PSCmdlet.ShouldProcess($apiEndpointURI, "Delete Warehouse"))
45
{
46
# Step 3: Make the API request and Validate the response
47
- $response = Invoke-FabricRestMethod -Uri $apiEndpointURI -Method Delete
48
- $response = Test-FabricApiResponse -response $response -ObjectIdOrName $WarehouseId -typeName "Warehouse"
+ $apiParameters = @{
+ Uri = $apiEndpointURI
49
+ Method = 'DELETE'
50
+ HandleResponse = $true
51
+ TypeName = "Warehouse"
52
+ ObjectIdOrName = $WarehouseId
53
+ }
54
+ $response = Invoke-FabricRestMethod @apiParameters
55
}
56
57
# Step 4: Handle results
0 commit comments