1.69 Tracker bulk deletion

Bulk deletion of tracker objects work in a similar fashion to adding and updating tracker objects, the only difference is that the importStrategy is DELETE .

Example: Bulk deletion of tracked entity instances:

{
  "trackedEntityInstances": [
    { "trackedEntityInstance": "ID1" },
    { "trackedEntityInstance": "ID2" },
    { "trackedEntityInstance": "ID3" }
  ]
}

curl -X POST -d @data.json -H "Content-Type: application/json"
  "http://server/api/26/trackedEntityInstasnces?strategy=DELETE"

Example: Bulk deletion of enrollments:

{
  "enrollments": [
    { "enrollment": "ID1" },
    { "enrollment": "ID2" },
    { "enrollment": "ID3" }
  ]
}

curl -X POST -d @data.json -H "Content-Type: application/json"
  "http://server/api/26/enrollments?strategy=DELETE"

Example: Bulk deletion of events:

{
  "events": [
    { "event": "ID1" },
    { "event": "ID2" },
    { "event": "ID3" }
  ]
}

curl -X POST -d @data.json -H "Content-Type: application/json"
  "http://server/api/26/events?strategy=DELETE"