---
title: Delete a script
description: To delete a script, perform an HTTP DELETE using the /json{/realm}/scripts endpoint, specifying the UUID in the URL.
component: pingoneaic-api
page_id: pingoneaic-api:am-scripting:rest-api-scripts-delete
canonical_url: https://developer.pingidentity.com/pingoneaic-api/am-scripting/rest-api-scripts-delete.html
keywords: ["Scripts", "REST"]
---

# Delete a script

To delete a script, perform an HTTP DELETE using the `/json{/realm}/scripts` endpoint, specifying the UUID in the URL.

```bash
$ curl \
--request DELETE \
--header "Authorization: Bearer <access-token>" \
--header "Accept-API-Version: resource=1.1" \
'https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/scripts/aeb22d32-100c-46c0-ac51-af571889e5b9'
{}
```

|   |                                                                                                                                                                                                                                                                    |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|   | You can't read, update, or delete the default scripts prefixed `ForgeRock Internal` (UUIDs: `234ba0b-58a1-4cfd-9567-09edde980745` and `1f389a3d-21cf-417c-a6d3-42ea620071f0`). These scripts appear in the query but aren't accessible in Advanced Identity Cloud. |
