iCloud erase pending cellular data

I

iMore Question

hi, I forgot the passcode to my phone
it's not letting me restore my phone, itunes doesn't recognise the phone so I have used icloud erase
however it is saying my phone isn't in connection yet it is on and has cellular connection. Will erase my iphone work with cellular connection or only wifi