def delete(scope, event_subscription_name, custom_headers:nil)
      response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
      nil
    end
def delete(scope, event_subscription_name, custom_headers:nil)
      response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value!
      nil
    end
Delete an event subscription

 Delete an existing event subscription

 @param scope [String] The scope of the event subscription. The scope can be a
 subscription, or a resource group, or a top level resource belonging to a
 resource provider namespace, or an EventGrid topic. For example, use
 '/subscriptions/{subscriptionId}/' for a subscription,
 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
 resource group, and
 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
 for a resource, and
 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
 for an EventGrid topic.
 @param event_subscription_name [String] Name of the event subscription
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.