delete_terraform_state
Deletes a Terraform state from a Semaphore project inventory using the specified state ID, helping remove obsolete state records through the management API.
Instructions
delete terraform state. Availability depends on Semaphore edition, license, and permissions; some Community routes return 404 or empty lists. DELETE /project/{project_id}/inventory/{inventory_id}/terraform/states/{state_id}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"inventory_id": "<inventory_id>",
"state_id": "<state_id>"
},
"name": "delete_terraform_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state_id | Yes | ||
| project_id | Yes | ||
| inventory_id | Yes |