Dynamics 365 has the ability to schedule data for deletion.
To do this, go to Settings->Data Management:
Select Bulk Record Deletion:
Click New and the Bulk Deletion Wizard will appear:
Select the entity whose records you want to delete. Enter any additional criteria:
If you do not enter any additional criteria you will get this message:
Note you can schedule when to repeat the job:
Click Next and Submit to finish setting up the job.