Install Power Platform CLI
https://learn.microsoft.com/en-us/power-platform/developer/howto/install-cli-msi
Open Powershell and run the following to create the connectionpac auth create --environment "[environment url]"
Run the following to create the scheduled job
pac data bulk-delete schedule --environment "[environment url]" --entity "[entity name]" --job-name "Delete all x records"