How to Delete JSON Files Safely without Losing Your Data or Photos

authorPic

By Jenefey Aaron

2026-05-14 / Mac Cleanup

Most JSON files are safe to delete, but Google Takeout JSON files and project-level JSON files (launch.json, package.json, tsconfig.json) are not. Deleting Google Takeout JSON files before merging them into your photos will permanently strip the original date, GPS location and captions from every image.

This guide shows which JSON files are safe to remove, which are not, and exactly how to delete JSON Files on Windows, Mac, and inside Google Takeout exports.

How to Delete Json Files

Part 1. What Is a JSON File? Why Do You Suddenly Have So Many JSON Files?

A JSON file (JavaScript Object Notation) is a lightweight plain-text data file in JavaScript Object Notation format, used to store structured data: settings, metadata, configuration, or backup data. The JSON file does not contain images, video, or executable code; it describes other files or app behavior. It’s widely used by apps, websites, and services to organize information in a readable and transferable format.

If you have suddenly noticed dozens or hundreds of .json files on your device, they almost always come from one of four sources:

  • Google Takeout exports: Every photo gets a sidecar JSON containing its original date, GPS coordinates, and description.
  • Application settings and logs: Apps like Slack, Discord, and browsers store preferences in JSON.
  • Developer tools: VS Code stores debug configs in launch.json, Node.js projects use package.json.
  • Cloud backups: Services like iCloud, Dropbox, and OneDrive include JSON manifests alongside media.

Part 2. Delete JSON Files From Google Takeout (Read This First)

Do not bulk-delete Google Takeout JSON files before merging them into your photos. Google Photos stores the date taken, GPS location, and description in these JSON sidecars, may not be in the photo's EXIF itself. If you delete the JSON files first, your photos will permanently show the export date as their date taken, with no location data.

note icon
Note:

Google quietly renamed Takeout sidecar files from IMG_1234.jpg.json to IMG_1234.jpg.supplemental-metadata.json. Filenames around 46 characters get truncated, so you may also see variants like .supplemental-metad.json or .supplemental-m.json. They all contain the same metadata. Exports created now may use either naming scheme, sometimes both in the same archive.

Which path applies to you?

  • Path A: You want to keep the original photo dates, GPS, and captions: follow the merge-first instructions below before deleting any JSON.
  • Path B: You only want to free up disk space and do not need the metadata (for example, your photos are already correctly dated in another library, or these are screenshots/duplicates you do not care about): skip merging and jump to the direct-delete steps further down.

Path A: Merge first, then delete (recommended for personal photo libraries)

Google stores your photo's date taken, GPS location, and description in the JSON file, not in the photo itself. Merging copies that information from the JSON into the photo's built-in EXIF data, so the photo carries its own metadata after the JSON is deleted.

  • Extract every Takeout zip into a single parent folder.
  • Open Metadata Fixer (metadatafixer.com), drag your Takeout folder in. Then click “Next Step” to proceed.
  • Drag Takeout Folder into Metadata Fixer
  • In the new screen, choose a destination folder to put your merged files later.
  • Choose Destination Folder for Merge Files
  • Next, in the new screen, keep the default metadata options without change anything and click “Start” to merge the JSON metadata into your photos automatically.
  • Metadata Fixer Select Metadata Information
  • Next, click “Start Export” to export and save the merged files. Once done, you can find them in the destination folder.
  • Export Merged Files from Metadata Fixer

Once verified, follow the direct-delete steps below to remove the JSON file.

Path B: Delete Google Takeout JSON files directly (only if you do not need the metadata)

If you downloaded your photos via Google Takeout, JSON files are simply metadata companions and not required for viewing images. You can safely delete JSON files to clean up your storage without knowing how to open .json files. Using built-in tools like File Explorer (Windows) or Finder (Mac) makes this process quick and safe without affecting your actual photos.

Delete Google Photos JSON Files on Windows in File Explorer

  • Open “File Explorer” and navigate to your “Google Takeout” folder, where you downloaded it.
  • In the search bar, type: “.json” and select all JSON files displayed
  • Right-click and choose “Delete."

Clear Google Photos JSON Files on Mac in Finder

Do not type "json" into Finder's plain search bar, it treats the word as a content keyword and returns .js files and any document mentioning "json". Use the File extension filter instead:

  • Open your Takeout folder in Finder.
  • Press Cmd + F and set the scope to the current folder (top of the window).
  • Click the + button under the search bar to add a filter.
  • In the first dropdown choose Other…, then check File extension and click OK.
  • Type json (no dot) into the value field.
  • Select all results, then drag them to the Trash to delete all.
  • Clear All Json Files

Part 3. Delete All JSON Files in a Folder (App Caches, Old Projects, Bulk Cleanup)

Use these methods to delete all JSON files in any folder outside Google Takeout: app caches, old project folders, data dumps, and so on.

On Windows — Command Line

  • Open “Command Prompt” as administrator,
  • Navigate to the folder: “cd path\to\your\folder".
    For example: cd "C:\Users\YourName\Downloads\TargetFolder"
  • Run “del .json” and confirm deletion

macOS — Terminal (one command, fastest method)

  • Open “Terminal" and navigate to your exact directory: "cd /path/to/folder", e.g., cd Desktop.
  • Type command: “rm .json” and press Enter to execute
  • Mac Terminal Delete All Json Files

Part 4. Delete launch.json in VS Code (and What Will Happen If You Do)

Launch.json lives in a hidden folder named .vscode at the root of your project. Deleting it removes your debug configurations only, it does not affect your source code, settings.json, or extensions. VS Code will offer to regenerate it the next time you open the Run and Debug view.

Steps:
  • In VS Code, open your project folder.
  • In the Explorer sidebar, expand the .vscode folder.
  • Right-click launch.json and choose Delete.
  • If you only want to remove one debug configuration, open launch.json and delete that single object inside the configurations array. Do not delete the whole file.

If the .vscode folder is hidden in your file manager, on Windows enable "Hidden items" in File Explorer's View tab; on macOS press Cmd + Shift + . in Finder.

Part 5. Delete All or Specific .json Files on Mac in One Click (Beginner-Friendly)

If you want a safer and smarter way to delete JSON files, tools like Tenorshare Cleamio are highly recommended. It scans your Mac for junk files, including JSON files, and identifies which are safe to remove. This eliminates the risk of accidentally deleting critical configuration files.

Tenorshare Cleamio is a powerful and user-friendly cleaning tool that automatically detects unnecessary JSON files while intelligently differentiating between safe and critical system files. With its efficient one-scan system, it can clean multiple file types simultaneously, making system maintenance quick and hassle-free.

Designed with a beginner-friendly interface, it allows users to complete the entire cleanup process with just a single click.

Steps to Delete Mac JSON Files Using Cleamio

  • Install and launch Cleamio on your Mac, then click "Scan" in the "Junk Files" section.
  • cleamio scan junk json files on mac
  • When the scan is complete, Review the categorized results. JSON files appear under cache and log categories.
  • Tick the categories you want to remove and click “Smart Cleanup”.
  • cleamio smart cleanup json files

Once the cleanup is complete, click "OK," and you have successfully deleted all the JSON files.

Part 6. Can’t Delete JSON File? Fix “Access Denied” or Locked Files

Sometimes you cannot delete a JSON file and get the error “Access Denied” due to user permission restrictions.That means, The file is open in another process, owned by a different user, or marked read-only. This section helps fix such issues with locked files.

On Windows

If you can’t delete JSON files due to “Access Denied” errors, it’s usually because the file is in use or restricted by permissions. Running File Explorer as administrator or closing related programs can resolve this issue quickly and allow a safe experience to clear JSON files.

  • Close any apps using the file, then right-click “File Explorer” and choose “Run as Administrator."
  • Run File Explorer As Admin
  • Try deleting again. If needed, use Task Manager to end related processes, then repeat the steps.

On Mac

On macOS, locked JSON files may require permission changes before deletion. You can adjust file access or use Terminal for force removal. This method ensures you regain control over stubborn files without damaging your system.

  • Right-click the file and click “Get Info".
  • In the Get Info window, expand the “General” section and untick the “Locked” box to unlock the JSON file.
  • Unlock Json File
  • Unlock permissions using admin password (if needed) in the “Sharing and Permissions” section and change access to "Read & Write."
  • Change Json File Permission
  • Try to delete the file now.

Part 7. Is It Safe to Delete JSON Files?

Yes, it is generally safe to delete JSON files, especially if they are metadata or temporary files. However, you should be cautious with system or app-related JSON files because they may be required for software functionality.

What Happens If You Delete JSON Files?

Deleting Google Takeout JSON files removes stored data or metadata associated with apps or files. In most cases, nothing critical happens, but some applications may reset settings or lose saved configurations.

Should You Delete JSON Files?

swiper icon Please swipe to view
Scenario
Safe to Delete?
What You Lose
Recommendation
google takeout metadata
only after merging
dates, gps, descriptions
merge first or delete
vs code launch.json
project settings
keep or recreate
game save files
sometimes
progress
backup first
app cache json
nothing important
safe to delete
package.json / tsconfig.json / composer.json
project will fail to build or install
never delete from a project root

People Also Ask about JSON Files

Q1: Is it safe to delete JSON files from Google Photos?

Only after you have merged the metadata into your photos. The JSON files contain the original date taken, GPS coordinates, and any captions you added, none of which are written into the photo file itself. Run exiftool or Metadata Fixer first, verify the dates are correct, then delete.

Q2: Can you delete JSON files on Mac?

Yes, you can delete JSON files from Google Photos on Mac using Finder, Terminal, or cleanup tools. It’s important to identify whether the file is system-related before deleting it to avoid disrupting app functionality.

Q3: Should you delete JSON files after Google Takeout?

Yes, but only after merging. These are the renamed (late-2024) Google Takeout sidecars; they contain exactly the same data as the older .json files. The same merge-first rule applies.

Q4: How to delete all JSON files in a folder in Windows?

You can delete all JSON files using Command Prompt by navigating to the folder and running del .json. This removes all JSON files instantly. Always double-check the folder path before executing the command.

Q5: Do I need JSON files?

It depends on the context. JSON files used by apps or development environments are important, while metadata files from exports or logs are usually unnecessary. Always review their purpose before deleting them.

Q6: Why can’t I delete a JSON file?

This usually happens because the file is in use, locked, or requires administrator permissions. Closing related applications or adjusting file permissions typically resolves the issue.

Q7: How to manage JSON data?

You can manage JSON data using text editors, development tools, or cleanup software. Organizing files into folders and removing unnecessary JSON files regularly helps maintain a clean and efficient system.

Q8: Will deleting launch.json break my project in VS Code?

No. launch.json controls only how VS Code launches your debugger. Your code, dependencies, and settings.json are unaffected. VS Code will offer to recreate launch.json the next time you start a debug session.

Conclusion

Learning how to delete JSON files safely helps you clean up unnecessary clutter without risking important data. Whether you’re removing Google Takeout metadata or clearing system junk, the right method matters. For a faster and safer experience, especially on Mac, Tenorshare Cleamio offers an intelligent, one-click solution to identify and remove unnecessary JSON files effortlessly.

Speak Your Mind

Registrer/ Login

then write your review

Speak Your Mind

Leave a Comment

Create your review for Tenorshare articles

Related articles

All topics

Cleamio

All-in-One Mac Cleaner & Optimizer

4.5 / 5 rating
3.5M+ installs
Available for: macOS 10.13 or later
Tenorshare Cleamio

Cleamio: All-in-One Mac Cleaner & Optimizer

Clean junk files, free up space, and boost Mac performance

No.1 Mac Cleaner & Optimizer

Clean, speed up, and optimize your Mac