Lars, Bugger! - I had overlooked that (and maybe Jason too?). But just to confirm - that dataPruning api call in reality works exactly like the pg function shared by Jason?
Otherwise - very nice to see that has been included. I've had some sessions deleting duplicated OrgUnits that have been embedded all over the place, and it can be a pain in the b... to track down all the bits and pieces Regards Calle On 13 April 2016 at 16:53, Lars Helge Øverland <l...@dhis2.org> wrote: > Hi Mohamed, > > in 2.22 we introduced a Web API feature for forcing delete of organisation > units: > > http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s38.html > > So if you are able to send a POST request to the following URL if will > remove related data/completeness/approval records. > > regards, > > Lars > > > Data pruning will remove complete data set registrations, data approvals, > data value audits and data values, in this case for an organisation unit. > > /api/maintenance/dataPruning/organisationUnits/<org-unit-id> > > > > > On Wed, Apr 13, 2016 at 1:24 PM, Mohamed Bangura <mbang...@gmail.com> > wrote: > >> Hi all, >> >> We are currently trying to delete old facilities from our main server >> but nothing seems to be happening since these facilities already have >> data.Is there a way one can do this or disable the facilities as this >> is currently affecting the completeness of our data. >> >> I need your help please. >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : dhis2-devs@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> > > > > -- > Lars Helge Øverland > Lead developer, DHIS 2 > University of Oslo > Skype: larshelgeoverland > http://www.dhis2.org <https://www.dhis2.org/> > > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > > -- ******************************************* Calle Hedberg 46D Alma Road, 7700 Rosebank, SOUTH AFRICA Tel/fax (home): +27-21-685-6472 Cell: +27-82-853-5352 Iridium SatPhone: +8816-315-19119 Email: calle.hedb...@gmail.com Skype: calle_hedberg *******************************************
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp