How to disable _all field in production mode?

I have the same issue. I'm trying to disable _all to update to ES 6.1 but i get this error:

{"type":"illegal_argument_exception","reason":"mapper [_all] enabled is true now encountering false"}