DELETE /mltk/agents/{agent_name}

DELETE /mltk/agents/{agent_name}

Begin async teardown: calls SCS `DELETE {scs_url_base}/agent/aws_agentcore/{runtime_id}`, sets the agent state to `\"Deleting\"`, and dispatches an `agentstatus` job to monitor cleanup.

  • AGENT_RUN_CAPABILITIES

Description. Begin async teardown: calls SCS DELETE {scs_url_base}/agent/aws_agentcore/{runtime_id}, sets the agent state to "Deleting", and dispatches an agentstatus job to monitor cleanup. The KV record stays until the monitor confirms removal.

Response (200).

{
  "message": "Agent demo deletion initiated",
  "status": "DELETING",
  "tracking_job_id": "1715425200.456"
}

Example.

curl -sk -u "$SPLUNK_USER:$SPLUNK_PASSWORD" -X DELETE 
  "$SPLUNK_HOST/servicesNS/nobody/Splunk_ML_Toolkit/mltk/agents/demo?output_mode=json"

Source. bin/rest_handlers/agents.py, bin/agent_manager/agent_manager.py, bin/agent_manager/common_utils.py, bin/agent_status.py.

Press Cmd/Ctrl+K to focus search. Esc to close.

Type to search the portal.