iCloud erase pending cellular data

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
Yes, as long as the iPhone is online, it can be erased.

Original thread: https://forums.imore.com/threads/icloud-erase-pending-cellular-data.396332/