remove unnecessary core files