Delete Project Goal — API Reference
Method -: DELETE
https://pagesense.zoho.com/pagesense/rest/v1/portal/{portal_name}/projectgoals/{linkname}
Scope required
PageSense.goals.DELETE
Purpose / Description
Deletes an existing goal. This endpoint removes the goal configuration so it will no longer be tracked or appear in the project’s goal list. Know what you’re doing — deletion can be permanent and may affect historical reports and experiments that referenced this goal.
Request
URL parameters
portal_name — Portal identifier (path).
linkname — Project goal link name (path). This should uniquely identify the goal within the project.
Sample request:
Copiedcurl -X DELETE "https://pagesense.zoho.com/pagesense/rest/v1/portal/my-portal/projectgoals/time-spent" \
-H "Authorization: Zoho-oauthtoken {access_token}
-H "Accept: application/json"Response field notes
projectgoals — returns the deleted goal object (or metadata) confirming the operation.
actual_end_time — timestamp when deletion took effect (useful for audit).
goal_status — may reflect a status set during deletion (e.g., 2 = Deleted/Paused). Document your exact semantics.
success — boolean confirming success for each object.
Sample Response
Copied{
"status_code": "10000",
"status_string": "All resource were processed successfully.",
"timeTakenToProcessTheRequest": "182 ms",
"projectgoals": [
{
"created_time": 1761732418306,
"time_spent_seconds": "",
"goal_type": 8,
"display_name": "Time spent",
"goal_id_string": "93969000000011017",
"goal_id": 93969000000011017,
"project_id": 93969000000007437,
"success": true,
"actual_end_time": 1761732631427,
"goal_status": 2,
"is_data_tracked": false,
"created_date": "Oct 29, 2025",
"linkname": "time-spent"
}],
"count": 1
}