# Python virtual environments (Poetry)

Source: https://diskcity.app/folders/py-poetry-virtualenvs

**Check before deleting.** Usually, but look first. poetry install recreates it from the project's poetry.lock.

## What it is

Python virtual environments (Poetry) is data your Mac or an app can rebuild. It lives at ~/Library/Caches/pypoetry/virtualenvs/*.

## Where it is

- `~/Library/Caches/pypoetry/virtualenvs/*`

## How big is it?

```sh
du -sh "$HOME/Library/Caches/pypoetry/virtualenvs"
```

## How to remove it

1. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
2. Leave anything opened or changed less than 60 days ago (for a folder, its newest file counts). DiskCity waits that long too.
3. Move only what passes these checks 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 only when you approve. It only suggests it once it hasn't been used for 60 days.
