FabricTools v0.33.0 Public Preview

Remove-FabricMirroredDatabase

Deletes an MirroredDatabase from a specified workspace in Microsoft Fabric.

Syntax

Remove-FabricMirroredDatabase [-WorkspaceId] <guid> [-MirroredDatabaseId] <guid> [-WhatIf]
 [-Confirm] [<CommonParameters>]

Description

The Remove-FabricMirroredDatabase function sends a DELETE request to the Fabric API to remove a specified MirroredDatabase from a given workspace.

Examples

Example 1

Deletes the MirroredDatabase with ID "67890" from workspace "12345".

Remove-FabricMirroredDatabase -WorkspaceId "12345" -MirroredDatabaseId "67890"

Parameters

NameTypeReq.Pos.PipelineDescription
-MirroredDatabaseId guid ✓Required 1 –

(Mandatory) The ID of the MirroredDatabase to be deleted.

-WorkspaceId guid ✓Required 0 –

(Mandatory) The ID of the workspace containing the MirroredDatabase to delete.

-Confirmalias: cf switch Named –

Prompts you for confirmation before running the cmdlet.

-WhatIfalias: wi switch Named –

Runs the command in a mode that only reports what would happen without performing the actions.

This cmdlet also supports the common parameters, such as -Verbose and -ErrorAction. See about_CommonParameters.

Notes

  • Requires $FabricConfig global configuration, including BaseUrl and FabricHeaders.
  • Validates token expiration before making the API request.

Author: Tiago Balabuch, Kamil Nowinski