How can I delete documents 3 months older?

Sorry if I am a little lost but does ILM only apply for new documents?

I use the reindex API to reindex only the results/documents obtained from the API to a new index. Ones that id done I will delete the index.