---
title: "Delete Agent Java Token"
method: DELETE
path: "/ca_apis/deleteAgent"
tags: ["default"]
---

# Delete Agent Java Token

`DELETE /ca_apis/deleteAgent`

Deletes an agent based on the provided `userName` and `agentId`.

## Headers

- `apiKey` string, required
- `Content-Type` string, required

## Request body

- object
  - `userName` string, required — The username associated with the agent.
  - `agentId` string, required — The ID of the agent to delete.

## Response `200`

Successful response indicating the agent was deleted.

## Other responses

- `400` — Bad Request due to missing or invalid input.
- `404` — Agent not found.

---

[API](https://skmtc.net/ozonetel/apis/agent-authentication.md) · [All operations](https://skmtc.net/ozonetel/apis/agent-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ozonetel/agent-authentication/versions/9096baa9c71b/schema)
