RTC:Fold unlink into 1 function call for both files and folders