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

## Changes

- **2025-06-10** `ca9a49ac7fbb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.AgentService/DeleteAgentExecution/post.md)

---

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