---
title: "DeleteAgentExecution"
method: POST
path: "/gitpod.v1.AgentService/DeleteAgentExecution"
tags: ["gitpod.v1.AgentService"]
---

# DeleteAgentExecution

`POST /gitpod.v1.AgentService/DeleteAgentExecution`

Deletes an agent run.

 Use this method to:
 - Clean up agent runs that are no longer needed

 ### Examples

 - Delete an agent run by ID:

   ```yaml
   agentExecutionId: "6fa1a3c7-fbb7-49d1-ba56-1890dc7c4c35"
   ```

## Request body

- GitpodV1DeleteAgentExecutionRequest
  - `agentExecutionId` string, uuid

## Response `200`

Success

- GitpodV1DeleteAgentExecutionResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/versions/44d50c2ac284/schema)
