Clean up history not working through API

Hi Community,

I’m trying to delete history through API but history tables still keep same size.
Endpoint: https://camunda/engine-rest/history/cleanup

Does this endpoint trigger an async behavior right? I tried to get cleanup jogs using
https://camunda/engine-rest/history/cleanup/jobs , and there’s a record where dueDate is always increasing but I see no effect.

Is there another way to delete history outside Rest API?

Thanks in advance

Your definitions need to have a TTL configured before anything will be removed from history. If you’re doing this after the fact, you’ll have to start with an End-time-based strategy. I would recommend reading
through the docs on history cleanup to get an idea of the cleanup behaviors.