check the return value of unlink and report if files could not be deleted