unlinkResource refactoring