cleanup directory spec