---
title: "Remove a managed OpenCode config"
method: DELETE
path: "/v1/org/opencode-configs/{name}"
tags: ["Agent Permissions"]
---

# Remove a managed OpenCode config

`DELETE /v1/org/opencode-configs/{name}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/opencode-configs/{name}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Deletes a published config that is assigned to nobody. A config that is still assigned is refused, so no member loses their rules by accident: unassign it first. Removing a name that is not there answers not_found. Requires Managed OpenCode config and agent_permissions.manage with a recent sign-in.

## Path parameters

- `name` string, required

## Response `200`

Removed, or was not there.

- ManagedOpencodeConfigRemoveResponse
  - `result` 'removed' | 'not_found', required

## Other responses

- `401`: Sign in required.
- `403`: The caller needs the agent_permissions.manage permission and a recent sign-in.
- `404`: Managed OpenCode config is off, or the config, team or member is not in this organization.
- `409`: The config is still assigned. Nothing was removed.

## Changes

- **2026-12-01** `418545ae8367`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/opencode-configs/:name/delete.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
