---
title: "POST /projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"
method: POST
path: "/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"
tags: ["regionInstanceGroupManagers"]
---

# POST /projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances

`POST /projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances`

Flags the specified instances in the managed instance group to be
immediately deleted. The instances are also removed from any target
pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of
instances that you delete.
The deleteInstances operation is marked DONE if
the deleteInstances request is successful. The underlying
actions take additional time. You must separately verify the status of thedeleting action with thelistmanagedinstances
method.

If the group is part of a backend
service that has enabled
connection draining, it can take up to 60 seconds after the connection
draining duration has elapsed before the VM instance is removed or deleted.

You can specify a maximum of 1000 instances with this method per request.

## Path parameters

- `project` string, required
- `region` string, required
- `instanceGroupManager` string, required

## Query parameters

- `noGracefulShutdown` boolean
- `requestId` string

## Request body

- RegionInstanceGroupManagersDeleteInstancesRequest
  - `skipInstancesOnValidationError` boolean — Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region.
  - `instances` string[] — The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/compute.md) · [All operations](https://skmtc.net/google/apis/compute/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/compute/revisions/6120ed8969d4/schema)
