
```swift
func deleteLocationHistory() async {
    do {
        try await Amplify.Geo.deleteLocationHistory()
    } catch let error as Geo.Error {
        print("Failed to delete location history: \(error)")
    } catch {
        print("Unexpected error: \(error)")
    }
}
```