---
title: "POST /usc-delete"
method: POST
path: "/usc-delete"
tags: ["v2"]
---

# POST /usc-delete

`POST /usc-delete`

## Request body

- UscDelete — uscDelete is a command that deletes a secret from a Universal Secrets Connector
  - `force-delete` boolean — Force delete objects that are soft deleted by default (relavent only for Azure target)
  - `json` boolean — Set output format to JSON
  - `namespace` string — The namespace (relevant for Hashi vault target)
  - `object-type` string
  - `secret-id` string, required — The universal secrets id (or name, for AWS, Azure, K8s or Hashi vault targets) to delete
  - `selected-repositories` string — GitHub selected repositories. For repository scope: repo name. For repository-environment scope: repo/env (format: repo-name/env-name). Required when multiple repos/envs configured.
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `usc-name` string, required — Name of the Universal Secrets Connector item

## Response `202`

uscDeleteResponse wraps response body.

- UscDeleteSecretOutput
  - `name` string

## Other responses

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

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
