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_idstringRequiredformat: "objectid"
Unique identifier for a Site
script_idstringRequired
Unique identifier for a Script

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
versionstringOptional
The version of the hosted script to delete

Errors