What is the .antigravity folder, and is it safe to delete?

Yes, but read this firstDiskmack safety tier: Caution
~/.antigravity

The .antigravity folder belongs to Antigravity, Google's AI coding editor. It holds caches and per-user state, and you can delete it, but know the trade: the caches rebuild on their own, while settings and sign-in tied to that folder may need to be set up again. If you still use Antigravity, clean it surgically. If you've uninstalled the app, the whole folder is leftover data and can go.

What it is

~/.antigravity is a hidden folder in your home directory, created the first time you launched Antigravity, Google's AI-first code editor built on the VS Code lineage. Like ~/.vscode or ~/.cursor for their respective editors, it's where the app keeps data that lives outside the application bundle: installed extensions, helper components, and working state for the editor and its agents, plus caches the app builds as you use it. You won't see it in Finder unless hidden files are visible (press Cmd-Shift-Period in Finder to toggle them).

It grows the way every editor dotfolder grows. Extensions accumulate, and updates can leave older versions sitting next to new ones. Agent sessions and caches add working files over time. None of it gets cleaned up on the app's own initiative, so the folder only moves in one direction. On a light setup it might be a few hundred megabytes; with heavy daily use and a pile of extensions it can pass a gigabyte or more. It's rarely the biggest thing on your disk, but people notice it precisely because it's a mystery dotfolder with an odd name.

Is it safe to delete?

Mostly yes, with one caveat. Nothing in ~/.antigravity is your work; your projects live wherever you saved them. If you delete the folder, the caches rebuild automatically the next time Antigravity runs. What doesn't come back for free is the state: expect to sign in to your Google account again, reinstall or wait on extensions, and redo any settings that were stored there. That's an annoyance, not a disaster, but it's why this folder rates caution instead of a free pass.

So match the action to your situation. Still using Antigravity? Open the folder, find the large subfolders, and trash only the cache-like ones, leaving extensions and config in place. Done with the app entirely? Trash the whole folder; it's dead weight once the editor is gone. Diskmack identifies ~/.antigravity automatically and cleans it the safe way, moving files to the Trash so you can undo if the editor complains.

How to check its size

In Finder: In Finder, choose Go > Go to Folder (or press Cmd-Shift-G), paste ~/.antigravity, and press Return. Select the folder, press Cmd-I, and wait for the Get Info window to finish counting. Open the folder and repeat on its subfolders to see where the bulk actually sits.

In Terminal:

du -sh ~/.antigravity
du -sh ~/.antigravity/*

How to clean it

  1. Quit Antigravity completely (Cmd-Q), so no process is writing to the folder while you work.
  2. In Finder, choose Go > Go to Folder, paste ~/.antigravity, and press Return.
  3. Select the subfolders and press Cmd-I on each to see which ones hold the space. Cache and temporary-looking folders are usually the bulk.
  4. If you just want space back, drag only the cache-like subfolders to the Trash and leave extensions and configuration alone.
  5. If you want a full reset, or you've uninstalled Antigravity, drag the entire ~/.antigravity folder to the Trash instead.
  6. Relaunch Antigravity. It recreates what it needs; sign back in and re-apply any settings it forgot.
  7. Once the editor behaves normally for a day, empty the Trash.

There's no official cleanup command for this folder. If you depend on a tuned setup with many extensions, prefer trashing the obvious caches over wiping the whole folder; a full reset costs you setup time, not data.

Will it come back?

Yes, if you keep using Antigravity. The folder is recreated on the next launch, and the caches inside it rebuild as you edit, install extensions, and run agent sessions. Growth is gradual rather than explosive, so this isn't a folder you need to police weekly; checking it once or twice a year is plenty. If you deleted it because you stopped using the editor, it stays gone unless you reinstall and launch Antigravity again.

Common questions

I don't use Antigravity anymore. Can I delete ~/.antigravity completely?

Yes. Once the app is out of /Applications, the dotfolder is just leftovers. Trash it. While you're at it, check ~/Library/Application Support for an Antigravity folder too; editors in the VS Code family usually keep a second, often larger, data folder there.

Will deleting ~/.antigravity break my projects or lose code?

No. Your code lives in your own project folders, wherever you saved them. ~/.antigravity holds the editor's caches and state, not your files. The worst case after deleting it is re-doing editor setup: signing in again, reinstalling extensions, and restoring preferences.

Why can't I see the .antigravity folder in Finder?

Names starting with a dot are hidden on macOS. Press Cmd-Shift-Period in any Finder window to show hidden files, or skip the toggle entirely by using Go > Go to Folder and pasting the path ~/.antigravity directly.

Is this folder the reason my disk filled up?

Probably not by itself. It's usually in the hundreds of megabytes, sometimes more with heavy use, which is real but rarely the headline. Run du -sh on it to confirm, then look at the usual heavyweights: node_modules folders, package caches, and ~/Library/Caches.

Related folders