delete unnecessary resource