We want to automatically delete some document with different expiration dates

The best option these days is to use time based indices, and then just remove them after the expiration time.

Also you really need to upgrade, 5.X is EOL and no longer supported

1 Like