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:
Run->Open for delete... takes you to an Delete Options page. Select the options you want and click the command button to open files for delete. You can chose from these options:
- Put open 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 the Delete Options page via in the Path Browser 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