Re: [Dhis2-devs] Fast/bulk delete of events

2018-01-25 Thread Jason Pickering
Hi Petar, You might be able to adapt this script to your needs. This script will actually delete the orgunit, but I think the relevant part you need is here

Re: [Dhis2-devs] Fast/bulk delete of events

2018-01-24 Thread Calle Hedberg
Hi, For events without registration, bulk deleting directly in the database is easy: 1. Delete all relevant data element records in the table trackedentitydatavalue (and if relevant trackedentitydatavalueaudit) 2. Delete the "case" records in the table programstageinstance Alex' method using the

Re: [Dhis2-devs] Fast/bulk delete of events

2018-01-24 Thread Petar Jovanovic
Thanks a lot Alex! Anyhow, it would be a convenient feature for end users to do it through the DHIS2 interface as well. Best, Petar Obtener Outlook para Android On Wed, Jan 24, 2018 at 9:32 PM +0100, "Alex Tumwesigye" wrote: Hi,The easier way is to use the api/ev

Re: [Dhis2-devs] Fast/bulk delete of events

2018-01-24 Thread Alex Tumwesigye
Hi, The easier way is to use the api/events endpoint and query for events uids you want to delete. Once you have them, you can send http delete method via curl or nodejs or python or php,etc and loop through each to delete them via api/events/uid. Alex On Wednesday, January 24, 2018, Petar Jovano

[Dhis2-devs] Fast/bulk delete of events

2018-01-24 Thread Petar Jovanovic
Hi, We want to quickly (in groups) delete events related to a specific program and/or to a specific org unit (or list of org units). In DHIS2, we only managed to go one by one in the event capture app. Can anyone recommend us any other convenient and faster way to do this, or if you are awar