Microsoft Deprecates Location History API in Windows 11 for Enhanced Privacy

Introduction

Microsoft has recently announced the deprecation of the Location History API in Windows 11, a feature that quietly logged device location information over a 24-hour period to power contextual services such as Cortana’s location-based reminders and suggestions. This change, set to be implemented starting with the Windows 11 24H2 update (build 26100.712) in February 2025, highlights Microsoft’s ongoing commitment to user privacy and system streamlining.

Background: What Was the Location History API?

The Location History API allowed Windows 11 to collect and locally store up to 3,600 geographic position points within a 24-hour window. This rolling log served personal assistant features like Cortana by providing contextual, location-aware experiences without requiring repeated live location requests.

Though designed for Cortana—which has been largely retired as a standalone digital assistant—this API was unique in enabling apps to access historical location data with explicit user permission. Users found benefits in geo-fenced notifications, reminders linked to their daily routes, and personalized recommendations.

What’s Changing?

Starting February 12, 2025, the Location History API (specifically the INLINECODE0 method) will be removed from Windows 11. Location data will no longer be saved locally, and the related toggle and controls will also be removed from Settings → Privacy & Security → Location.

However, real-time location services will continue to function, ensuring apps and services can access your current location with permission — just without storing a historical record.

Why Microsoft Is Removing This Feature

Microsoft’s decision stems from several important considerations:

  • Enhanced User Privacy: By eliminating persistent local storage of location data, Microsoft reduces the chances of data breaches or unauthorized access to sensitive movement information.
  • Data Minimization: Aligning with global privacy principles (e.g., GDPR, CCPA), the removal supports minimizing the collection and retention of personal data.
  • System Streamlining: Removing legacy, underutilized APIs helps streamline the operating system, improve security, and reduce background data collection.
  • Modernization Efforts: With Cortana’s diminished role and a shift toward AI-driven, cloud-focused features, legacy APIs like Location History no longer fit Microsoft’s vision of Windows 11.

Implications for Users

For most everyday users, this change will be subtle:

  • Location-based features will continue to work with real-time data.
  • Historical location-dependent reminders or personalized content might lose some contextual depth.
  • The Location History setting toggle will no longer appear in Windows settings.
  • Users who had location history stored can manually clear residual data via Privacy & Security → Location settings.

Impact on Developers

Developers who rely on the INLINECODE1 API will need to update their software to avoid broken features once this API is deprecated. Microsoft encourages migrating to real-time location queries and updating to the latest Windows.Devices.Geolocation namespace practices.

Technical Details

CODEBLOCK0

How To Manage Your Location Data

Users concerned about residual local location data can:

  1. Open Settings
  2. Navigate to Privacy & Security > Location
  3. Use the Clear button next to Location History to delete stored data

This manual step complements Microsoft’s broader privacy-focused updates.

Conclusion

The deprecation of the Location History API marks a significant privacy-focused evolution in Windows 11. It underscores Microsoft’s dedication to minimizing personal data storage, simplifying privacy controls, and modernizing the operating system to meet contemporary security standards. While some contextual location features may lose historical nuance, the change aligns with industry trends towards data minimization and user empowerment.


Article prepared based on official Windows Forum discussions and latest Windows 11 update details.