---
title: "Delete a script connection"
method: DELETE
path: "/api/script-connections/{id}"
tags: ["Script Connections"]
---

# Delete a script connection

`DELETE /api/script-connections/{id}`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/script-connections/{id}`
- Auth: HTTP bearer

Hard-deletes the connection, its auto-managed credential binding, and any derived inline secret it owns.

## Path parameters

- `id` string, uuid, required

## Response `200`

Script connection deleted

- object
  - `deleted` true, required
  - `id` string, required

## Other responses

- `403`: Only the lead agent can manage script connections
- `404`: Script connection not found

## Changes

- **2026-10-09** `e272abc20eb7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/script-connections/:id/delete.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) - [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/7e4c7198192a?raw)
