---
title: "Delete an agent"
method: POST
path: "/v1/agents/{workflow_id}/delete"
tags: ["Agents"]
---

# Delete an agent

`POST /v1/agents/{workflow_id}/delete`

Delete an agent

## Path parameters

- `workflow_id` string, required — The ID of the agent to delete. Starts with `wpid_`.

## Headers

- `x-api-key` string, nullable — Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

## Response `200`

Successfully deleted agent

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/skyvern-ai/apis/skyvern-api-2.md) · [All operations](https://skmtc.net/skyvern-ai/apis/skyvern-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skyvern-ai/skyvern-api-2/versions/5116249dfff3/schema)
