To be able to erase content, the phone needs to have this function active. Android and ios devices have a function like this that needs to be active then you can manage the phone's content from the iCloud or your Samsung account. If it's a Google enabled phone, you have the possibility to erase it from Android Device Manager.