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

P4 CLI Reference | 2025.1

# p4 graph gc (graph)

Delete records of orphaned objects from the object table.

## Syntax

    p4 graph gc [-y]

Syntax conventions

## Description

The `graph gc -y` command deletes orphaned objects from the object table.

## Options

`-y` | By default, the p4 graph gc command displays a preview of the results. To execute the operation, include the `-y` option.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
N/A | N/A | super

## Example

See Delete a repo and free the used storage in the Work with Git in P4 Server Administration Documentation.

## Related commands

To recompute object refcounts in the object table. | p4 graph recompute-refcnts (graph)
To delete refhist records for a repo. | p4 graph purge-refhist (graph)

Your search for returned results