Skip to main content

Unhog

Reclaim space on your disk hogged by OneDrive, Dropbox, SharePoint offline files.

Unhog draws a SpaceMonger-style treemap of the files in a cloud-synced folder that actually occupy local disk space. "Files On-Demand" keeps most files online-only; Unhog shows only the hydrated ones, so you can see where the local space goes and free it up.

Unhog showing where the local space in a OneDrive folder goes

The treemap fills in while the folder is being scanned, so large folders can be explored right away, with a progress bar showing how far the scan has got. Optionally the free space on the drive is drawn next to the folder, on the same scale, to show how much the local copies matter.

Download

Download Unhog.zip (latest release)

Requires Windows 10 or 11. No installation needed. All releases, with release notes, are listed on the releases page. Each release also offers Unhog.exe, the same program packed into a single file; it is handy for copying around, but Windows Defender is more likely to mistrust it, so the zip is the recommended download.

The files are not code-signed. When you run Unhog the first time, Windows SmartScreen may show "Windows protected your PC". Click More info, then Run anyway. If Defender removes the file as a suspected threat instead (a false positive that new unsigned programs sometimes trigger), open Windows Security, Protection history, find the entry and choose Restore or Allow.

Run

Unzip Unhog.zip anywhere, for example into your Documents or Downloads folder. This creates a folder named Unhog. Open it and double-click Unhog.exe. It scans your OneDrive folder and shows the treemap.

Keep Unhog.exe together with the _internal folder next to it; the program does not run if the exe is copied out on its own. To put it on the desktop or Start menu, right-click Unhog.exe and create a shortcut.

To scan a different folder, use the Browse... button, or start it from a command prompt with the folder as argument:

Unhog.exe D:\Other

Install with pip

If Python 3.9 or later is installed, Unhog can also be installed from PyPI instead of downloading the zip:

pip install unhog
unhog

or, to keep it in its own environment, pipx install unhog. The unhog command takes the same optional folder argument as the exe. Windows Defender and SmartScreen have nothing to say about this route, since no unsigned exe is involved.

Freeing up space

Unhog only shows where the space goes; it does not delete or change anything. To free the space a file or folder uses, right-click it in Unhog and choose Open folder in Explorer (the item is selected there), then in Explorer right-click it and choose Free up space. The file stays in the cloud and is downloaded again when you open it. Back in Unhog, right-click the folder and choose Rescan to see the result without scanning everything again.

How to use

Hover a rectangle for details, double-click a folder to zoom in, right-click for options. The toolbar filters by modification time, size and local storage. All controls and settings are explained in USAGE.md.

How it works

Unhog asks Windows which files in the folder are online-only placeholders and which are actually present on disk. It reads only the directory listing and never opens files, so scanning does not download anything.

It is tested with OneDrive, OneDrive for Business (SharePoint), and Dropbox but it should be compatible with other cloud storage providers as well.

Privacy

Unhog runs entirely on your PC, does not connect to the internet, and does not send any information anywhere.

For developers

Running from source, tests, building the exe and making releases are described in DEVELOPMENT.md.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unhog-0.6.0.tar.gz (64.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unhog-0.6.0-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file unhog-0.6.0.tar.gz.

File metadata

  • Download URL: unhog-0.6.0.tar.gz
  • Upload date:
  • Size: 64.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for unhog-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8c4f4dc5fbe5a8c3fc643507244d27a8380f104e7d4291f64f08130a4a2888b6
MD5 f9ca163ec4b4342ce12bc10cedae9bf9
BLAKE2b-256 7132c822b1de9f2d31d139a3580f8c0a58112b4ea010016b1a8646416a510a5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for unhog-0.6.0.tar.gz:

Publisher: release.yml on lassoan/unhog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file unhog-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: unhog-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for unhog-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4388293cdb311e94467fd0994eaccc3f787fb1a8b0360c47148b3880879c4804
MD5 487e1ae0b061e7ebc0317a93f4c83a6a
BLAKE2b-256 121fbfa40874c2b8419dea0c12984c632fcdadd88e2a63bd3b9e1e221b1bf1bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for unhog-0.6.0-py3-none-any.whl:

Publisher: release.yml on lassoan/unhog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.1

2 files

This release

0.6.0 This release

2 files

0.5.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page