A photo from a phone can carry the exact GPS position it was taken at. Before I post one in public, I want to know what is hidden in it.
exiftool photo.jpg | grep -i gps
exiftool -all= photo.jpg
The first line shows whether the file has location data. The second removes all metadata. exiftool keeps the original as photo.jpg_original. Add -overwrite_original if you do not want that copy, but then there is no way back.
Caveat: -all= also removes the Orientation tag, so a portrait photo can end up on its side. Check the result before you upload it. Some sites also remove metadata themselves, but I would not rely on that.
Further reading: ExifTool documentation