← Back to team overview

dhis2-devs team mailing list archive

Re: DELETING FACILITIES WITH DATA FROM THE DHIS

 

Hi Lars,

good to know! Will also delete trackedentitydatavalues?

other questions... what do you think...

1) about adding startDate and endDate  (or periods) as parameters?

2) about adding a inlcudeDescendants=true as parameter? so we can remove
data from the descendants org. units as well... (hope never had a mistake
with this)

3) Also deleting trackedentitydatavalues from a particular program ....

Well there are multiple combinations, just wanted to know if you have some
plans to add some calls like those... In PSI, we have to go many times to
the database just to remove datavalues or trackedentitydatavalues...

Thanks
Jose

On Wed, Apr 13, 2016 at 4:53 PM, Lars Helge Øverland <lars@xxxxxxxxx> 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 <mbangs87@xxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxxxx
>> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References