remove locked directories