remove uneeded resource