Delete Goal — API Reference
Method -: DELETE
https://www.pagesense.zoho.com/pagesense/rest/v1/portal/{portal_name}/goals/{linkname}
Scope Required
PageSense.goals.DELETE
Description
Deletes an existing goal that is currently attached to an experiment.
This operation permanently removes the goal from the experiment’s configuration and tracking scope.
NOTE: Deleting goals can alter experiment reports — ensure the experiment is paused before removing active goals to maintain data consistency.
Request
URL parameters
portal_name — string — Portal identifier.
linkname — string — Goal linkname (path) identifying the goal to update.
Sample Request
Copiedcurl -X DELETE "https://www.pagesense.zoho.com/pagesense/rest/v1/portal/my-portal/goals/cta-button-click" \
-H "Authorization: Zoho-oauthtoken {access_token}
-H "Accept: application/json"Response field notes
goals - returned array of processed goal objects (usually one).
goal_id / linkname - canonical identifiers. Use them for downstream requests.
count - number of goals processed.
timeTakenToProcessTheRequest - Time taken by the server to process the call.
display_name - Original name of the deleted goal.
linkname - Name used for identification
Sample Response
Copied{
"status_code": "10000",
"status_string": "All resource were processed successfully.",
"timeTakenToProcessTheRequest": "439 ms",
"count": 1,
"goals": [{
"goal_id": 2000000987654,
"display_name": "Primary CTA Click",
"linkname": "cta-button-click",
"success": true
}]
}