Ayer's take on the script was "too dark" for the studio's taste, according to The Hollywood Reporter.
Ayer won acclaim for penning the hard-hitting "Training Day" and making gritty movies such as "End of Watch".
"Scarface" tells the story of the rise and fall of a gangster, which has seen previous versions made in 1932 and 1983, which was directed by Brian De Palma and starred Al Pacino.
Diego Luna is still attached to play the West Coast Latino gangster.