Remove invalid directory