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

# POST /target-delete

`POST /target-delete`

## Request

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

## Request body

- TargetDelete: targetDelete is a command that deletes a target
  - `force-deletion` boolean: Enforce deletion
  - `json` boolean: Set output format to JSON
  - `name` string, required: Target name
  - `target-version` integer: Target version
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

targetDeleteResponse wraps response body.

- TargetDeleteOutput

## 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)
