Deletes the specified script from the Script Repository. A script that is still referenced by a configuration, deployment policy, dynamic custom group, or Endpoint Analytics workflow is not deleted; the call returns HTTP 200 with the corresponding isUsedIn flag set to true.
https://{serverurl}/dcapi/configuration/scriptRepository/{scriptId} Copied!
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Unique identifier of the script to update. Fetch from List Scripts.
curl --request DELETE \
--url https://appdomains/dcapi/configuration/scriptRepository/{scriptId} \
--header 'Accept: application/deleteScriptStatus.v1+json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'true - user has access but script cannot be deleted because it is in use
true if the script is associated with a configuration
true if the script is used in a deployment policy
true if the script is used in a dynamic custom group
true if the script is used in an Endpoint Analytics workflow
I18N message describing where the script is in use
Product error code for the authorization failure
Localised error message for the error code
Product error code for the failure
Localised error message for the error code
Script is associated with configurations and cannot be deleted
{
"isUsedInDeploymentPolicy": false,
"isUsedInEA": false,
"isUsedInDynamicCustomGroup": false,
"isUsedInConfig": true,
"allowAccess": true,
"message": "dc.admin.ScriptRep.used_in_config"
}
Script is associated with Dynamic Custom Groups and cannot be deleted
{
"isUsedInDeploymentPolicy": false,
"isUsedInEA": false,
"isUsedInDynamicCustomGroup": true,
"isUsedInConfig": false,
"allowAccess": true,
"message": "dc.admin.ScriptRep.used_in_dynamic_cg"
}
Script is associated with Endpoint Analytics workflows and cannot be deleted
{
"isUsedInDeploymentPolicy": false,
"isUsedInEA": true,
"isUsedInDynamicCustomGroup": false,
"isUsedInConfig": false,
"allowAccess": true,
"message": "dc.admin.ScriptRep.used_in_ea"
}
The API user does not have the role required for this operation
{
"errorCode": 1001,
"errorMsg": "Access denied - You are not allowed to access the requested resource."
}
Unexpected server error during script deletion
{
"errorCode": 1003,
"errorMsg": "An Internal Error occurred, try again later."
}
![]()
Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes
Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.