---
title: "Delete OpalScript"
method: DELETE
path: "/opal-scripts/{opal_script_id}"
tags: ["opal-scripts"]
---

# Delete OpalScript

`DELETE /opal-scripts/{opal_script_id}`

## Request

- Base URL: `https://api.opal.dev/v1`
- URL: `https://api.opal.dev/v1/opal-scripts/{opal_script_id}`
- Auth: HTTP bearer

Deletes an `OpalScript`, along with the service user that backs it. A script that is still named as a reviewer, or referenced by a delegation, is rejected until those references are removed.

## Path parameters

- `opal_script_id` string, uuid, required

## Response `200`

The OpalScript was deleted.

## Changes

- **2026-10-08** `5d8d995bc79d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/opal/apis/opal-api/changes/opal-scripts/:opal_script_id/delete.md)

---

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