Clear command missing arguments

Hello,
I am trying to use the clear command to remove a specific item and a specific quantity of it.
However it appears i cannot define a quantity of the item. if i do it says
“Could not clear the inventory of %USERNAMEHERE%, no items to remove”

if i remove the quantity it works fine…

is anyone else having this issue?

EDIT: got it working! you have to specify the data value (which is listed as bedrock online on the wiki…) -1 would mean all variants