How can I delete a document when it is X month old?

I have an index and document gets added to that index everyday ,lets say with a frequency of 10,000 daily. I want to delete the documents which are 5 month old from that index and want to run this deletion process daily once for maintenance purpose.One important point, I can't walk in the route of creating new index and deleting the entire index.

You will need to invoke the delete by query API from a script or application outside Elasticsearch.