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.


Give feedback

Let us know how we're doing with a quick review. We use these reviews to improve and expand FinOps tools and resources.

If you're looking for something specific, vote for an existing or create a new idea. Share ideas with others to get more votes. We focus on ideas with the most votes.


Related products:

Related solutions: