We want to automatically delete some document with different expiration dates

Thank you for your help.
It's pity, we must do this job on the ES 5.5.
This version is not support ILM.
We have to use time-based indices or delete by query API.
There seems to be no other choice here.