Error Message
When attempting to disable location sharing in the ArcGIS Online Organization settings through the following workflow, Organization > Settings > Organization extensions, an error message appears stating:
Unable to disable Location sharing.

Cause
The Location Tracking hosted feature layer associated with location sharing has dependent items.
Solution or Workaround
- Access your browser's Developer Tools for network traffic.
- Edge and Chrome: Select the three dots in upper righthand corner of the browser, and then More Tools or Developer Tools, OR press Ctrl + Shift + I on your keyboard.
- Make sure you are on the Network tab in the uppermost toolbar.
- In the network traffic, select the {;}delete request on the lefthand side under Name.
- Go to the Response tab to find the error message that states:
"Unable to delete item. This service item has a related Service Item"

- Navigate to the Response tab where the delete call is logged. This provides details about the error.
- Switch to the Headers tab for the same delete call. This tab contains important information about the request.
- Locate the Item ID in the request URL within the Headers tab. Copy this Item ID for further use.
- Use the copied Item ID to search within your Content. This search will likely lead to theĀ Location Tracking hosted feature layer associated with the item.
- Once the feature layer is located, check for any views associated with it.
- Delete these views, ensuring that they are permanently deleted from the Recycle bin to avoid any lingering references.
- After successfully deleting the views, proceed to disable Location sharing to complete the process.
By following these steps, you should be able to resolve the error and successfully delete the service item.