rxmnnxfpvg
rxmnnxfpvg

Reputation: 31003

p4 remove old copies of submitted files

How do I remove old copies of edited/submitted p4 files: edited_this_already.ext~?

I can remove them via Unix command, but can p4 do this?

Thanks!

Upvotes: 2

Views: 436

Answers (2)

Bryan Pendleton
Bryan Pendleton

Reputation: 16359

Depending on which editor you use, you can probably configure the editor so that it does not make these backup files. For example, with 'vim', use ':set nobackup' in your startup script (or, if you want Vim to make the backup files, but put them somewhere else, try ':set backupdir').

Upvotes: 1

ChrisF
ChrisF

Reputation: 137158

If it's not in the depot under source control then Perforce doesn't know anything about the file so it can't delete it.

You're safe to use the OS commands to delete the files.

Upvotes: 3

Related Questions