// For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize JpegFormat
JpegFormat jpegFormat = new JpegFormat(Common.MapSourceFilePath(filePath));
// get location
GpsLocation location = jpegFormat.GetGpsLocation();
if (location != null)
{
// remove GPS location
jpegFormat.RemoveGpsLocation();
}
// commit changes
jpegFormat.Save(Common.MapDestinationFilePath(filePath));