remove files from tree that are unrelated to this component