Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 650793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:05:30+00:00 2026-05-13T22:05:30+00:00

The p4v Perforce GUI client has an ‘Actions > Remove from Workspace’ menu command

  • 0

The p4v Perforce GUI client has an ‘Actions > Remove from Workspace’ menu command which removes all files from the workspace that are under version control and were not opened for edit or delete.

This functionality only seems to be available from the GUI client, I can’t find any corresponding command in the ever growing list shown by p4 help commands.

I thought of using p4 where, p4 files and some list filtering, but that doesn’t seem trivial, so before I go about creating a script, does anyone have a better idea ?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:05:30+00:00Added an answer on May 13, 2026 at 10:05 pm

    Specifying a revision of either #none or #0 will remove the files:

    p4 sync //depot/project/...#none
    p4 sync //depot/project/...#0
    

    Use the -f switch to force removal of the files even if they are writeable (it won’t affect files that are checked out, however):

    p4 sync -f //depot/project/...#0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following error message in when submitting from my perforce client (p4v):
In the Perforce realm, the P4Win GUI is now legacy and the new P4V
Before I sync my Perforce client in the morning, I'd like to read the
P4V has been crapping out on me when attempting to resolve a large number
I'm using Perforce P4V, the graphical tool, to interface with my Perforce server here
I am using both command line and p4v. I need to find all checkins
How do I delete a workspace that has pending files when that workspace has
In Perforce P4V, I'd like to do a search for all changelists that have
I sometimes use the feature 'Reconcile Offline Work...' found in Perforce's P4V IDE to
I accidentally created a new changelist with files from WORKSPACE not from DEPOT and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.