---
title: "POST /delete-targets"
method: POST
path: "/delete-targets"
tags: ["Targets"]
---

# POST /delete-targets

`POST /delete-targets`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/delete-targets`
- Auth: none declared

## Request body

- DeleteTargets
  - `force-deletion` boolean: Enforce deletion
  - `json` boolean: Set output format to JSON
  - `path` string, required: Path to delete the targets from
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

deleteTargetsResponse wraps response body.

- DeleteTargetsOutput

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
