delete sd card files every year

Do you mean you want to delete files as they reach one year old? I seem to remember that the SDFat library supports file times, so I think it would be possible to detect files that were over a year old. If that wasn't possible, you could adopt a file naming scheme that incorporated the date so that you can determine the age of each file. When you create a new file would be a good time to check for obsolete files.