Remove-FinOpsCostExport Delete a Cost Management export and optionally data associated with the export.
On this page
The Remove-FinOpsCostExport command deletes a Cost Management export and optionally data associated with the export.
This command has been tested with the following API versions:
- 2023-07-01-preview (default) – Enables FocusCost and other datasets.
- 2023-08-01
- 2023-03-01
🧮 Syntax
Remove-FinOpsCostExport `
-Name <string> `
-Scope <string> `
[-RemoveData <switch>] `
[-ApiVersion <string>] `
📥 Parameters
Name | Description |
---|---|
‑Name | Required. Name of the Cost Management export. |
‑Scope | Required. Resource ID of the scope to export data for context. |
‑RemoveData | Optional. Optional. Indicates that all cost data associated with the Export scope should be deleted. |
‑ApiVersion | Optional. API version to use when calling the Cost Management exports API. Default = 2023-03-01. |
🌟 Examples
Delete a Cost Management export
Remove-FinOpsCostExport `
-Name MyExport`
-Scope "/subscriptions/00000000-0000-0000-0000-000000000000"`
-RemoveData
Deletes a Cost Management export and removes the exported data from the linked storage account.
🧰 Related tools
- 🏦 FinOps hubs – Open, extensible, and scalable cost reporting.