remove core directory