Skip to main content

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​

ParameterDescription
project_keyYour project's API key
goal_profile_idThe 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​

StatusMeaning
401Invalid or missing API key
404Goal 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.