latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Runners Workspaces
Destroy workspace infrastructure resources
Initiates a destroy task to clean up cloud infrastructure resources managed by this workspace. This does not delete the workspace entity itself.
post/runners/workspaces/{workspaceId}/tasks/destroy
Path parameters
workspaceIdstring required
Unique identifier of the workspace
Request body
Example request
{
"description": "Running infrastructure task",
"vcs": {
"reference": "main"
},
"trigger": {
"type": "manual",
"source": "Firefly"
},
"taskId": "task-12345",
"cmdArguments": "-auto-approve"
}Response
Destroy task initiated successfully
Example response
{
"vcs": {
"reference": "main"
}
}