Remove excess resources