Jaa


Remove-FinOpsCostExport command

The Remove-FinOpsCostExport command deletes a Cost Management export and optionally data associated with the export.

This command was 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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"`
    -RemoveData

Deletes a Cost Management export and removes the exported data from the linked storage account.


Related products:

Related solutions: