Remove-FabricLakehouse
Deletes an Lakehouse from a specified workspace in Microsoft Fabric.
Syntax
Remove-FabricLakehouse [-WorkspaceId] <guid> [-LakehouseId] <guid> [-WhatIf] [-Confirm]
[<CommonParameters>]Description
The Remove-FabricLakehouse function sends a DELETE request to the Fabric API to remove a specified Lakehouse from a given workspace.
Examples
Example 1
Deletes the Lakehouse with ID "67890" from workspace "12345".
Remove-FabricLakehouse -WorkspaceId "12345" -LakehouseId "67890"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -LakehouseId | guid | ✓Required | 1 | – | (Mandatory) The ID of the Lakehouse to be deleted. |
| -WorkspaceId | guid | ✓Required | 0 | – | (Mandatory) The ID of the workspace containing the Lakehouse 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
- Calls
Confirm-TokenStateto ensure token validity before making the API request.
Author: Tiago Balabuch, Kamil Nowinski