Remove-FinOpsHub command
The Remove-FinOpsHub command removes a FinOps hub instance and optionally keep the storage account hosting cost data.
The command returns a boolean value indicating whether all resources were successfully deleted.
Syntax
Remove-FinOpsHub `
[-Name] <string> `
[-ResourceGroup <string>] `
[-KeepStorageAccount]
Remove-FinOpsHub `
[-InputObject] <PSObject> `
[-KeepStorageAccount]
Parameters
Name | Description |
---|---|
‑Name |
Required. Name of the FinOps hub instance. |
‑InputObject |
Required when specifying InputObject. Expected object is the output of Get-FinOpsHub. |
‑ResourceGroup |
Optional when specifying Name. Resource Group Name for the FinOps Hub. |
‑KeepStorageAccount |
Optional. Indicates that the storage account associated with the FinOps Hub should be retained. |
Examples
The following example demonstrates how to use the Remove-FinOpsHub command to delete a FinOps hub instance.
Remove a FinOps hub instance
Remove-FinOpsHub `
-Name MyHub `
-ResourceGroup MyRG `
-KeepStorageAccount
Deletes a FinOps Hub named MyHub and deletes all associated resource except the storage account.
Related content
Related solutions: