Skip to navigation

Delete Custom Code

Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site’s registered scripts.

To remove individual scripts applied by the App, use the Add/Update Custom Code endpoint.

Access to this endpoint requires a bearer token obtained from an OAuth Code Grant Flow.

Required scope | custom_code:write

Authentication

AuthorizationBearer

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

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site

Response

Request was successful. No Content is returned.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error