How Create Hangfire job to call delete existing files more than one day method

Hang fire job to delete files more than one day.

I have to create hangfire job to delete excel file from folder if exists more than one day

How to do?

Trying to create job

dInfo–Is a file path

RecurringJob.AddOrUpdate(() => FileCleaning.FileClear(dInfo), Cron.Minutely);

but getting “operation is not supported in this platform” exception.