I\'m trying to write some SQL that will delete files of type \'.7z\' that are older than 7 days.
Here\'s what I\'ve got that\'s not working:
DECLARE
Try changing the first parameter from 0 to 1.
Here is a small summary on xp_delete_file I just found. Sounds a bit like you'd be out of luck with this procedure.