delete invalid directory