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

P4 CLI Documentation | 2025.2

# p4 delete (graph)

Delete an existing file from the repo.

## Syntax

    p4 delete [-c changelistNumber] file ...

Syntax and naming conventions

## Description

Opens a repo file for deletion. If the file is synced in the client workspace, it is removed.

## Options

Option | Description
--- | ---
`-c changelistNumber` | Opens the files for `delete` within the specified changelist. If this option is not provided, the files are linked to the default changelist.
`-n` | Preview which files would be opened for delete, without actually changing any files or metadata.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
No | No | `write` protection on path, `write-ref` permission on depot or repo

Your search for returned results