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

P4 Visual Client (P4V) Documentation | 2025.2

# Delete and restore files

You can delete files, and you can restore deleted files.

## Delete files

To delete files from the depot, on the Workspace tab or the Depot tab, click the files, click Mark for Delete, click Submit, and submit the changelist.

See also Delete shelved files.

To remove files from your client workspace without submitting a changelist, right-click the files and click Remove from Workspace.

When you delete files from a depot, P4 Server increments the number of revisions in the depot, with the deletion being the latest revision. The deleted files are:

- No longer listed on the Workspace tab.

- Still listed on the Depot tab, but at revision `0`.

### Example

Suppose that you want to delete a file named `readme.html` that has three revisions.

On the Depot tab, right-click the file, click Mark for Delete, and click Submit. The `Depot` tab shows `readme.html #0/4`:

- `0` means that your client workspace does not contain the `readme.html` file.

- `/` is the separator between the workspace revision number and the number of revisions in the depot.

- `4` means that the depot has four revisions, with `4` representing the deletion.

## Restore files

You can restore files to any revision in each file's history. To restore a file:

1. On the Depot tab, click the filter icon , and click Show Deleted Depot Files.

2. Right-click the file, click Get Revision, and specify revision you want.

3. Right-click the file, and click Mark for Add.

4. Right-click the file, and click Submit. When you restore a deleted file, P4V increments the number of revisions of the file.

### Example

Suppose you want to restore `readme.html` to the most recent revision prior to deletion.

1. On the Depot tab, click the filter icon , and click Show Deleted Depot Files. The Depot tab shows `readme.html #0/4`.

2. Right-click the file, click Get Revision, and specify revision `3`. The Depot tab shows `readme.html #3/4`.

3. Right-click the file, and click Mark for Add.

4. Right-click the file, and click Submit. The Depot and Workspace tabs show `readme.html #5/5`.

Your search for returned results