Skip to main content
The Storage page shows what uses a repository’s storage, measured against its default branch. It splits the total into three parts: the files on the default branch now, the older versions and deleted files that the branch’s history keeps, and content that only other branches and workspaces hold. It also lists the largest folders and files on the default branch, with all their versions added together. Where it is safe, each row has a command that previews removing that path with obliterate.

Requirements

  • You must be a repository admin. The settings list only the repositories you are an admin of.
  • The page measures the repository’s default branch.
  • The page is not available on self-hosted installations.

Open the page

1

Open Storage

Click your profile avatar in the top navigation and select Organization settings. In the settings sidebar, select Repositories, then select Storage, the last item in the repository column.
2

Pick the repository

Make sure the correct repository is selected in the repository picker.

Calculate

Opening the page never starts a calculation. The page shows the last saved result, however old, and next to the button says when it was calculated and on which branch.
  • A repository that was never calculated shows Calculate. Click it to start.
  • To get a new result, click Recalculate.
While a calculation runs, the page shows Calculating storage…, and the last result stays on the page, faded, until the new one arrives. A calculation takes from a few seconds on a small repository to several minutes on a very large one. After the first one, the page says how long it usually takes. You can leave the page: the calculation keeps running and its result is saved. A repository runs one calculation at a time. If another admin, or another browser tab, clicks Recalculate during a run, the page shows that same run instead of starting a second one. If a calculation fails, the page says:
The storage calculation failed. Try again later.
The last result that finished stays below the message. If the page cannot load the saved result at all, it says Could not load the storage of this repository.

The three parts

The top of the page shows the repository’s total storage, split into three parts. Each unique file content counts once. The total is the repository’s storage from the daily storage calculation, the same number the dashboard shows, so changes from today may not show in it yet. Other branches and workspaces is that total minus the default branch’s two parts. The top of the page also shows the organization’s storage, for example Organization: 120 GB of 200 GB plan. Organization owners and billing members also see a Billing link there. An organization with no storage limit shows only the storage it uses.

Largest folders

Up to 20 folders, largest first. A folder’s size counts every version on the default branch, including its subfolders. A folder is listed only when it holds at least 0.5% of the branch’s storage.
  • A folder with big subfolders is listed with its whole size, unless one subfolder holds at least 90% of it. Then the folder is listed as (files directly in it), with only the files directly inside it, and only if those hold at least 0.5% of the branch’s storage.
  • The On column, named after the default branch, says whether the folder still exists on it: Exists or Deleted.
  • A folder that was moved or renamed is listed once, under its newest path.

Largest files

Up to 100 files, largest first. A file’s size adds up every version of it on the default branch, and Versions says how many there are. The On column says Exists or Deleted. A file that was moved or renamed is listed once, under its newest path. Both lists show each size with its share of the repository’s total, and leave out empty files and folders. The same content in two files or two folders counts in each of them, so the sizes and shares can add up to more than the total.

Free storage from the page

Each row has the dv obliterate preview command for its path. Click the copy icon next to the command to copy it.
  • A file’s command names the file, for example dv obliterate preview "/Builds/game.pak".
  • A folder’s command ends in /..., which matches everything in the folder and its subfolders.
  • A (files directly in it) row’s command ends in /*, which matches only the files directly in that folder.
Run the command in a terminal, in a folder where the repository is cloned. The preview deletes nothing: it shows what obliterate would delete. To delete, follow Execute. On Windows, run it in PowerShell or cmd. Git Bash changes a path that starts with /, so the command fails there.
Obliterate deletes every version of the files it matches, including the current one, and cannot be undone. Read the preview before you run dv obliterate execute.
A row shows No safe command when its path has a character that obliterate reads as a pattern, such as [, ], {, } or ?, or that a terminal changes, such as $ or ". A command for that path could match other files or miss this one. On a repository that syncs with Git, the lists have no commands, because obliterate is not available there. To keep fewer old versions from now on, set revision limits, called Retention rules in the settings. Revision limits are available on Studio and Enterprise plans.

Permission rules

If the repository has path permission rules, the lists leave out folders and files at paths you cannot read. The sizes at the top still count everything.
  • Obliterate — permanently delete every version of matching files
  • Revision limits — keep only the latest N versions of matching files
  • Storage — how storage is counted