Delen via


HDInsightClusterResource.DeleteScriptActionAsync 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: 2024-08-01-preview
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteScriptActionAsync (string scriptName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteScriptActionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteScriptActionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteScriptActionAsync (scriptName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

scriptName
String

The name of the script.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scriptName is null.

Applies to