Delete org unit

Hi all,

I’m quite new to dhis2, and still learning it. I’m using dhis v2.17.

I had created an organisation unit and have data entry.

How can I remove it directly in DHIS2 ?

I already delete all data in the dataset, but when I try to delete, I get the following message "Objet not deleted because it associated by objects of type Datavalue"

Is that possible ?

Best regards,

Pepe Ken

Hi Pepe,

Let's me call you in your phone number or skype and try to help you.
But notice there is a table named " Datavalue " who is associated with the organisation unit table.
Let's do it in french my dear.

Hi all,
Thank you very much my friends, I’ll try and I’ll let you know

Regards

Pepe Ken

···

2015-01-17 11:18 GMT+01:00 Joseph K. Osborn osbornlegrand@hotmail.fr:

Hi Pepe,

Let’s me call you in your phone number or skype and try to help you.
But notice there is a table named " Datavalue " who is associated with the organisation unit table.
Let’s do it in french my dear.


Date: Sat, 17 Jan 2015 04:27:42 +0100
From: pepekento1@gmail.com
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] Delete org unit

Hi all,

I’m quite new to dhis2, and still learning it. I’m using dhis v2.17.

I had created an organisation unit and have data entry.

How can I remove it directly in DHIS2 ?

I already delete all data in the dataset, but when I try to delete, I get the following message "Objet not deleted because it associated by objects of type Datavalue"

Is that possible ?

Best regards,

Pepe Ken

_______________________________________________ Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

I just want to reiterate on his point… there is a foreign key restraint on orgunit from the datavalue table

This means you need to delete any datavalue that references that ou before deleting it

···

2015-01-17 11:18 GMT+01:00 Joseph K. Osborn osbornlegrand@hotmail.fr:

Hi Pepe,

Let’s me call you in your phone number or skype and try to help you.
But notice there is a table named " Datavalue " who is associated with the organisation unit table.
Let’s do it in french my dear.


Date: Sat, 17 Jan 2015 04:27:42 +0100
From: pepekento1@gmail.com
To: dhis2-users@lists.launchpad.net
Subject: [Dhis2-users] Delete org unit

Hi all,

I’m quite new to dhis2, and still learning it. I’m using dhis v2.17.

I had created an organisation unit and have data entry.

How can I remove it directly in DHIS2 ?

I already delete all data in the dataset, but when I try to delete, I get the following message "Objet not deleted because it associated by objects of type Datavalue"

Is that possible ?

Best regards,

Pepe Ken

_______________________________________________ Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp