{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-execute-delete-request-schema.json",
  "title": "ExecuteDeleteRequest",
  "description": "The virtual machines and execution settings for a bulk delete action.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-subscriptions-api-openapi.yml#/components/schemas/ExecuteDeleteRequest",
  "type": "object",
  "properties": {
    "executionParameters": {
      "$ref": "#/$defs/ExecutionParameters",
      "description": "The execution settings for the bulk action."
    },
    "resources": {
      "$ref": "#/$defs/Resources",
      "description": "The target virtual machines."
    },
    "forceDeletion": {
      "type": "boolean",
      "description": "Indicates whether Bulk Actions uses forced deletion for the target virtual machines."
    }
  },
  "required": [
    "executionParameters",
    "resources"
  ],
  "$defs": {
    "ExecutionParameters": {
      "type": "object",
      "description": "The execution settings for a bulk action.",
      "properties": {
        "retryPolicy": {
          "$ref": "#/$defs/RetryPolicy",
          "description": "The retry settings for the bulk action."
        }
      }
    },
    "ResourceOperationType": {
      "type": "string",
      "description": "The type of operation performed by Bulk Actions.",
      "enum": [
        "Unknown",
        "Start",
        "Deallocate",
        "Hibernate",
        "Create",
        "Delete"
      ],
      "x-ms-enum": {
        "name": "ResourceOperationType",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown",
            "description": "The operation type is not known."
          },
          {
            "name": "Start",
            "value": "Start",
            "description": "Starts the specified virtual machines."
          },
          {
            "name": "Deallocate",
            "value": "Deallocate",
            "description": "Deallocates the specified virtual machines."
          },
          {
            "name": "Hibernate",
            "value": "Hibernate",
            "description": "Hibernates the specified virtual machines."
          },
          {
            "name": "Create",
            "value": "Create",
            "description": "Creates the specified virtual machines."
          },
          {
            "name": "Delete",
            "value": "Delete",
            "description": "Deletes the specified virtual machines."
          }
        ]
      }
    },
    "Resources": {
      "type": "object",
      "description": "The virtual machines targeted by a bulk action.",
      "properties": {
        "ids": {
          "type": "array",
          "description": "The Azure resource IDs of the target virtual machines.",
          "items": {
            "type": "string",
            "format": "arm-id",
            "description": "A type definition that refers the id to an Azure Resource Manager resource.",
            "x-ms-arm-id-details": {
              "allowedResources": [
                {
                  "type": "Microsoft.Compute/virtualMachines"
                }
              ]
            }
          }
        }
      },
      "required": [
        "ids"
      ]
    },
    "RetryPolicy": {
      "type": "object",
      "description": "The retry settings for a bulk action.",
      "properties": {
        "retryCount": {
          "type": "integer",
          "format": "int32",
          "description": "The maximum number of retry attempts."
        },
        "retryWindowInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "The period, in minutes, during which Bulk Actions can retry the operation."
        },
        "onFailureAction": {
          "$ref": "#/$defs/ResourceOperationType",
          "description": "The operation that Bulk Actions attempts when the requested operation fails."
        }
      }
    }
  }
}