Delete Goal
DELETE
/v2/project/{project_key}/goal/{goal_profile_id}Soft-delete a goal profile. The record is preserved in the database but will no longer appear in the Goals list or be selectable for new experiments.
Path parameters
| Parameter | Description |
|---|---|
project_key | Your project's API key |
goal_profile_id | The numeric goal profile ID to delete |
Example
curl -X DELETE "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/goal/3003" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"
Success response
{
"success": true,
"goal_profile_id": 3003,
"deleted": true
}
Error responses
| Status | Meaning |
|---|---|
401 | Invalid or missing API key |
404 | Goal not found or belongs to a different project |
Soft delete
This operation sets status = 2 on the goal profile. The data is not permanently removed. Historical conversion data linked to this goal in past experiments is preserved.
Check for experiment dependencies first
If this goal is currently set as the primary goal for any live experiment, deleting it may cause those experiments to stop tracking conversions. Check your active experiments before deleting a goal.