Database access

Hi Everyone! I want to enter to the dhis2´s database because i need to erase data into a table. Please how can i do it? Thanks

Hi @eviesn

PgAdmin is a tool administrators can use to access the database; however, it’s not recommended to make changes to the database directly… may I ask more why this necessity and that it’s not achievable using the UI?

Thank, because i need eliminate data elements who have data. If i eliminate data elements with data so Dhis2 give a error.

Hi @eviesn ,

A cool solution would be to send an HTTP DELETE request to the appropriate endpoint using the ID of the element to be deleted (dataset value, program stage instance, or event program instance).

1 Like

Thanks i will probe it.

1 Like