Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Server Administration Documentation | 2025.1

# Delete a repo and free the used storage

The following steps cause permanent removal with no possibility of recovery.

The user who performs these steps needs the `super` access level through p4 protect.

1. Delete the repo metadata with `p4 repo -d [-f] repoName`

2. Delete the repo archive directory:

- on Linux or macOS: `rm -r <DepotDir>/<repoName>.git`

- on Windows: `rd /s /q <DepotDir>\<repoName>.git`

3. Delete the related reference history records by running p4 graph purge-refhist (graph)

4. Run p4 graph gc to get a preview.

5. Run p4 graph gc -y

Your search for returned results