HDInsightClusterResource.DeleteScriptAction(String, CancellationToken) Method

Definition

Deletes a specified persisted script action of the cluster.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}.
  • Operation Id. : ScriptActions_Delete.
  • Default Api Version. : 2025-01-15-preview.
  • Resource. : HDInsightClusterResource.
public virtual Azure.Response DeleteScriptAction(string scriptName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteScriptAction : string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteScriptAction : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteScriptAction (scriptName As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

scriptName
String

The name of the script.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scriptName is null.

scriptName is an empty string, and was expected to be non-empty.

Applies to