Delete a run
Deletes a specific run and all its associated data, including files and storage. This is primarily used for PII compliance when an agent extracts personally identifiable information. The run can be in either the active Runs table or the RunHistory table — both are checked automatically.
The removeMethod parameter controls what is deleted:
RemoveEntireRun(default) — completely removes the run record and all associated files.RemoveAllFiles— removes files but keeps the run record.RemoveAllFilesAndAgentInput— removes files and clears agent input parameters.
Authorizations
API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"
OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"
Path Parameters
The ID of the agent that contains the run
The ID of the run to delete
Query Parameters
The deletion method to use. Defaults to RemoveEntireRun.
RemoveAllFiles, RemoveAllFilesAndAgentInput, RemoveEntireRun Response
The run was successfully deleted