## DeleteAgentExecution `client.agents.deleteExecution(AgentDeleteExecutionParamsbody, RequestOptionsoptions?): AgentDeleteExecutionResponse` **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" ``` ### Parameters - `body: AgentDeleteExecutionParams` - `agentExecutionId?: string` ### Returns - `AgentDeleteExecutionResponse = unknown` ### Example ```typescript import Gitpod from '@gitpod/sdk'; const client = new Gitpod({ bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted }); const response = await client.agents.deleteExecution({ agentExecutionId: '6fa1a3c7-fbb7-49d1-ba56-1890dc7c4c35', }); console.log(response); ``` #### Response ```json {} ```