{
  "algorithm": {
    "parameters": [
      {
        "name": "planId",
        "type": "string"
      },
      {
        "name": "maingoalId",
        "type": "string"
      }
    ],
    "statements": [],
    "typeReturn": "obj()",
    "variables": []
  },
  "routing": {
    "method": "DELETE",
    "parameters": [
      {
        "bind": "planId",
        "in": "Path",
        "name": "planId",
        "remarks": "planId"
      },
      {
        "bind": "maingoalId",
        "in": "Path",
        "name": "maingoalId",
        "remarks": "maingoalId"
      }
    ],
    "path": "/designer/plans/{planId}/main-goals/{maingoalId}",
    "remarks": "Delete the goal of the plan",
    "responses": [
      {
        "httpStatus": "200",
        "remarks": "OK"
      },
      {
        "httpStatus": "204",
        "remarks": "Goal deleted"
      },
      {
        "errorName": "Unauthorized",
        "httpStatus": "401",
        "remarks": "Unauthorized"
      },
      {
        "errorName": "Forbidden",
        "httpStatus": "403",
        "remarks": "Forbidden"
      },
      {
        "errorName": "NotFound",
        "httpStatus": "404",
        "remarks": "Not found"
      }
    ]
  }
}