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

# POST /delete-target

`POST /delete-target`

## Request

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

## Request body

- DeleteTarget: deleteTarget is a command that deletes a target. [Deprecated: Use target-delete command]
  - `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`

deleteTargetResponse wraps response body.

- DeleteTargetOutput

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