Remove older versions of DMN files

Hello,

In our project we have requirement that the the DMN keeps on updating every day.
And hence every day a new version of same decision table is getting deployed in database.
So I wanted to know is it possible to keep only latest 5 versions of the decision table in database at a given point of time?
And the older version should get automatically deleted from database as soon a new version is deployed.

Thanks,
Rahul