Delete Registered Script
Delete a registered script from a site. This endpoint allows you to:
- Delete a specific version of a script by providing the
version
parameter - Delete all versions of a script by omitting the
version
parameter
This action cannot be undone. Deleting a script may affect site functionality if the script is in use.
Required scope | custom_code:write
Path parameters
site_id
Unique identifier for a Site
script_id
Unique identifier for a Script
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
version
The version of the hosted script to delete