# Cargo registry index

Source: https://diskcity.app/folders/rust-cargo-registry-index

**Safe to delete.** Yes. Cargo downloads it again when needed.

## What it is

Cargo's copy of the crates.io index; cargo fetches it again on the next build that needs it.

Kept while cargo runs (it updates the index in place).

## Where it is

- `~/.cargo/registry/index`

## How big is it?

```sh
du -sh "$HOME/.cargo/registry/index"
```

## How to remove it

1. Quit cargo first.
2. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
3. Move its contents to the Trash.
4. Empty the Trash to get the space back. Until then, you can still put things back.

## What DiskCity does with it

DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It waits until cargo is closed.

## Sources

- https://doc.rust-lang.org/cargo/guide/cargo-home.html

Checked 2026-10-24.
