Minecraft replace command syntax error

minecraft-bedrock-editionminecraft-commands

I am using minecraft bedrock on my switch.
All I want to do is to remove all the oak trees so am using the fill/replace command but all I get back is “syntax error: unexpected “minecraft:log”: at “05 94 -41 >>minecraft:log<< “
I have no clue what it means

My starting point is -891, 60, 409 and my end point is -305, 94, -41

The exact thing I am typing in is

/fill -891 60 409 -305 94 -41 minecraft:log replace minecraft:air

Am I missing something?

Thanks

Best Answer

You are missing the data value before “replace.”

/fill -891 60 409 -305 94 -41 minecraft:log 0 replace minecraft:air