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

P4 CLI Reference | 2025.1

# p4 graph recompute-refcnts (graph)

Recompute object refcounts in the object table.

## Syntax

    p4 graph recompute-refcnts [-r] [-y]

Syntax conventions

## Description

This command recomputes `refcount` values in the object table.

By default, the command displays a preview of any required corrections. To make the command perform the corrections, specify the `-y` option.

Because this command might take a long time to complete:

- results of the default preview are saved for future use when the `-y` option is specified

- if the user terminates the command before it completes the preview or the corrections, the user can resume progress by specifying the `-r` option

## Options

`-r` | Resume the command.
`-y` | Perform any corrections instead of giving a preview.

## Usage notes

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

## Related commands

To delete records of orphaned objects from the object table. | p4 graph gc (graph)
To delete refhist records for a repo. | p4 graph purge-refhist (graph)

Your search for returned results