Unable to Delete Program Stage

Hello team,

I’ve been trying to delete a program stage from my program, but it keeps telling me that it’s associated with an event. I’ve deleted all the TEI data associated with the program stage. What could be the problem?
I also used Postman API (as seen below) but this is the error.

Did you permanently removed the soft deleted events ?

This can be done using the Data Administration app → Maintenance → Permanently remove soft deleted events

image

1 Like

hey, thank you so much for the response.
I just ran the maintenance options, but I’m getting the same error.

1 Like

Which version of dhis2 are you running ?
Do you have access to the dhis2 logs ?

1 Like

I’m running on version 2.41.0.1, and no, I don’t have access to the logs.

1 Like

Withouth the sytem logs, it could be challenging…

Any relationship relatd with events?

Is this an instance that started a long time ago (in another dhis2 version) ?

1 Like

I’ll see if I can get the logs.
Yes, there’s a relationship associated with the events, but I deleted all TEI.
No, it’s a new instance that was set up as 2.41, not upgraded from another version.

1 Like

Did you already “Permanently remove soft deleted tracked entity instances” ?

It could be the case that “Permanently remove” is not working. The logs files could help a lot.

1 Like