To delete files in a Perforce depot, sync them to your workspace, run open for delete on them, then submit your changelist.
The open for delete command removes files from
your workspace.
It doesn't affect depot files until you
submit your changelist.
The "" icon reminds you when you have
files open for delete.
(See also
Removing Workspace Files
if you simply want to remove your workspace files
without deleting them in the depot.)
You can open files for delete by:
Selecting Open for delete... takes you to the initial Open for Delete page, where you select the options you want and click the "Open for delete" button to open files for delete. You can chose from these options:
- Put opened files in changelist
- If your client workspace has more than one pending changelist, this option is available to let you select the changelist into which opened files appear.
- Restricting files
- If you came to this page by clicking a directory and then selecting Open for Delete... you can restrict the files affected by the Open for delete command.
Regardless of which files you select, a file will only be opened for delete if all of the following conditions are true:
- The file is not already opened in your workspace
- The file is synced in your workspace
- You have permission to open the file