Remove-FabricSparkJobDefinition
Removes an SparkJobDefinition from a specified Microsoft Fabric workspace.
Syntax
Remove-FabricSparkJobDefinition [-WorkspaceId] <guid> [-SparkJobDefinitionId] <guid> [-WhatIf]
[-Confirm] [<CommonParameters>]Description
This function sends a DELETE request to the Microsoft Fabric API to remove an SparkJobDefinition from the specified workspace using the provided WorkspaceId and SparkJobDefinitionId.
Examples
Example 1
This example removes the SparkJobDefinition with ID "SparkJobDefinition-67890" from the workspace with ID "workspace-12345".
Remove-FabricSparkJobDefinition -WorkspaceId "workspace-12345" -SparkJobDefinitionId "SparkJobDefinition-67890"Parameters
| Name | Type | Req. | Pos. | Pipeline | Description |
|---|---|---|---|---|---|
| -SparkJobDefinitionId | guid | ✓Required | 1 | – | The unique identifier of the SparkJobDefinition to be removed. |
| -WorkspaceId | guid | ✓Required | 0 | – | The unique identifier of the workspace from which the SparkJobDefinition will be removed. |
| -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