---
title: "Delete script"
method: DELETE
path: "/v1/script-library/{script-id}"
tags: ["Script Library"]
---

# Delete script

`DELETE /v1/script-library/{script-id}`

Delete a script from the script library.

## Path parameters

- `script-id` integer, required

## Response `204`

Script deleted successfully

## Other responses

- `400` — Invalid script ID
- `401` — Unauthorized
- `403` — User does not have SYSTEM_ACCESS_MANAGE_SCRIPTS permission
- `404` — Script with given ID does not exist
- `500` — Database failure

---

[API](https://skmtc.net/netxms/apis/netxms-api.md) · [All operations](https://skmtc.net/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netxms/netxms-api/versions/14d93e5115dd/schema)
