---
title: "Selectively Destroy a Droplet and its Associated Resources"
method: DELETE
path: "/v2/droplets/{droplet_id}/destroy_with_associated_resources/selective"
tags: ["DigitalOcean-public.v2-new_Droplets"]
---

# Selectively Destroy a Droplet and its Associated Resources

`DELETE /v2/droplets/{droplet_id}/destroy_with_associated_resources/selective`

To destroy a Droplet along with a sub-set of its associated resources, send a
DELETE request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/selective`
endpoint. The JSON body of the request should include `reserved_ips`, `snapshots`, `volumes`,
or `volume_snapshots` keys each set to an array of IDs for the associated
resources to be destroyed. The IDs can be found by querying the Droplet's
associated resources. Any associated resource not included in the request
will remain and continue to accrue changes on your account.

A successful response will include a 202 response code and no content. Use
the status endpoint to check on the success or failure of the destruction of
the individual resources.

## Path parameters

- `droplet_id` integer, required

## Request body

- SelectiveDestroyAssociatedResource — An object containing information about a resource to be scheduled for deletion.
  - `floating_ips` string[] — An array of unique identifiers for the floating IPs to be scheduled for deletion.
  - `reserved_ips` string[] — An array of unique identifiers for the reserved IPs to be scheduled for deletion.
  - `snapshots` string[] — An array of unique identifiers for the snapshots to be scheduled for deletion.
  - `volumes` string[] — An array of unique identifiers for the volumes to be scheduled for deletion.
  - `volume_snapshots` string[] — An array of unique identifiers for the volume snapshots to be scheduled for deletion.

## Response `202`

This does not indicate the success or failure of any operation, just that the request has been accepted for processing.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

## Changes

- **2025-10-16** `cb3bf9b21459` — 6 info
  - the security scope `block_storage:delete` was added to the endpoint's security scheme `bearer_auth`
  - the security scope `block_storage_snapshot:delete` was added to the endpoint's security scheme `bearer_auth`
  - the security scope `image:delete` was added to the endpoint's security scheme `bearer_auth`
  - the security scope `reserved_ip:delete` was added to the endpoint's security scheme `bearer_auth`
  - …2 more
- **2025-07-18** `f8e8c290636c` — 1 info
  - endpoint added
- **2025-07-17** `5fc9af728e82` — 1 breaking
  - api path removed without deprecation
- **2025-07-17** `f8e8c290636c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/digitalocean/apis/digitalocean-api/changes/v2/droplets/:droplet_id/destroy_with_associated_resources/selective/delete.md)

---

[API](https://skmtc.dev/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.dev/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc.dev/digitalocean/apis/digitalocean-api/revisions/cb3bf9b21459?raw)
