How to Reset the Lockdown Folder in iTunes
In this article
Yes—you can reset the iTunes lockdown folder by deleting its contents and letting iTunes rebuild it, which often clears sync and trust‑related errors.
What You'll Need
- A computer running macOS or Windows with iTunes installed (or the Music app on macOS Catalina and later).
- Administrator privileges on that computer.
- An Apple device (iPhone, iPad, iPod) that you can reconnect after the reset.
- A USB cable that reliably connects the device to the computer.
Step‑by‑Step
- Close iTunes (or the Music app) completely. On Windows, right‑click the iTunes icon in the taskbar and choose Close window. On macOS, quit the app from the menu iTunes > Quit iTunes or Music > Quit Music.
- Open the folder that stores the lockdown data.
- Windows 10/11: Open File Explorer and navigate to
%AppData%\Apple Computer\MobileSync\Backup. The lockdown folder itself lives at%AppData%\Apple Computer\iTunes\Lockdown. You can paste the path into the address bar and press Enter. - macOS (Intel): Open Finder, press Shift+Command+G, and enter
~/Library/Lockdown. - macOS (Apple Silicon) and macOS Catalina or later: The same
~/Library/Lockdownpath applies. The Music app uses the same folder as iTunes did.
Note: The
Libraryfolder is hidden by default. Use the Go menu in Finder and hold the Option key to reveal Library if needed. - Windows 10/11: Open File Explorer and navigate to
- Delete the contents of the
Lockdownfolder. You can either select all files inside and press Delete, or delete the entire folder itself. If you delete the folder, Windows will recreate it automatically; macOS will also recreate it when iTunes (or Music) runs again. - Empty the recycle bin (Windows) or trash (macOS) to ensure the files are fully removed.
- Restart your computer. A reboot guarantees that any cached references to the old lockdown data are cleared.
- Open iTunes (or Music) again. Connect your Apple device using the USB cable.
- When the device prompts “Trust This Computer?”, tap Trust on the device and, if asked, enter your device passcode. iTunes will now generate a fresh set of lockdown files for that computer.
- Verify that the device appears in iTunes under the device icon and that you can sync music, backups, or apps without the previous error messages.
Common Mistakes
- Deleting the wrong folder: The backup folder (
MobileSync\Backup) is different from the lockdown folder. Removing backups will delete all local device backups, which is usually not intended. - Not quitting iTunes first: If iTunes is still running, it may lock the lockdown folder, preventing deletion and causing error messages.
- Using a non‑admin account: Without administrator rights, Windows will block deletion of the folder. Run File Explorer as administrator or log in with an admin account.
- Skipping the reboot: Some system caches keep a handle on the old files; a quick restart avoids lingering locks.
- Forgetting to trust the computer again: After resetting, the device will ask to trust the computer. Declining will make it seem like the reset failed.
Tips
- Before deleting, make a quick copy of the existing
Lockdownfolder to a safe location. This provides a fallback if something unexpected happens. - If you manage multiple computers, each one has its own lockdown folder. Resetting on one machine does not affect the others.
- Use a wired USB connection rather than a wireless sync method while performing the reset. Wireless connections can introduce additional authentication layers that mask the real issue.
- Keep iTunes updated to the latest official version. Apple sometimes changes the internal path of the lockdown folder in major releases.
- On Windows, you can also run
net stop AppleMobileDeviceServicein an elevated Command Prompt before deleting the folder, then restart the service withnet start AppleMobileDeviceService. This guarantees the service isn’t holding the files.
Troubleshooting
If the device still shows trust errors or iTunes refuses to recognize it after following the steps above, try the following sequence.
- Check the Apple Mobile Device Service (Windows only): Open Services (type
services.mscin the Run dialog). Locate Apple Mobile Device Service, ensure it is set to Automatic, and click Restart. Then repeat the reset steps. - Update iTunes / Music app: Open iTunes > Help > Check for Updates (or use the App Store on macOS). Install any available updates, then retry the reset.
- Reset the device’s trust settings: On the iPhone or iPad, go to Settings > General > Reset > Reset Location & Privacy. This clears all previously trusted computers, forcing a fresh trust prompt.
- Delete the device’s pairing record: In iTunes, go to Edit > Preferences > Devices (Windows) or iTunes > Preferences > Devices (macOS). Select any entries for the device and click Delete Backup. This does not erase the device’s data, only the local pairing record.
- Try a different USB port or cable: Faulty hardware can mimic a lockdown‑folder problem. Use a known‑good cable and a port directly on the computer (avoid hubs).
- Reinstall iTunes: Uninstall iTunes (or the Music app’s supporting components on Windows) and then reinstall from Apple’s official website. This restores any missing system files that could be interfering with the lockdown process.
- Contact Apple Support: If none of the above resolves the issue, there may be a hardware problem with the device’s Lightning/USB‑C port or a deeper OS issue that requires professional assistance.
Frequently Asked Questions
Why does iTunes say “Unable to connect” after a macOS update?
The update can reset the permissions on the ~/Library/Lockdown folder, causing iTunes to lose the trusted relationship. Deleting and recreating the folder restores the connection.
Will resetting the lockdown folder delete my music or playlists?
No. The lockdown folder only stores pairing certificates and trust information. Your iTunes library, playlists, and purchased content remain untouched.
Can I reset the lockdown folder on a Windows PC without administrator rights?
Not reliably. Deleting the folder requires write access to %AppData%. Without admin privileges the operation will be blocked.
Do I need to back up my device before resetting the lockdown folder?
Backing up is always a good practice, but the lockdown reset does not affect the device’s data. However, if you also delete the MobileSync\Backup folder, you would lose local backups.
Is the lockdown folder the same as the backup folder?
No. The lockdown folder holds security certificates; the backup folder stores full device backups. They are separate and serve different purposes.
My iPhone still shows “Trust This Computer?” repeatedly after resetting. What next?
Reset the device’s location and privacy settings (Settings > General > Reset > Reset Location & Privacy) and then reconnect. If the prompt still repeats, try a different computer to rule out a hardware issue.