remove irrelevant directory