---
title: "Delete Script"
method: DELETE
path: "/scripts/{script_id}"
tags: ["Scripts"]
---

# Delete Script

`DELETE /scripts/{script_id}`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/scripts/{script_id}`
- Auth: API key in header `apikey`

Delete a script and remove it from all associated links.

## Path parameters

- `script_id` string, required

## Headers

- `Workspace` string
- `apikey` string, required

## Response `200`

Script deleted

- Script
  - `id` string, required: Script public ID
  - `name` string, required
  - `value` string: Script code/content
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `403`: Forbidden - Insufficient permissions

---

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