pi workspace delete

Command Help

> pi ws delete -h
Usage: pi workspace delete [-h] [--id identifier] [--discard] [path]

Description: Delete a Workspace. The Workspace directory will be deleted and
the Workspace will be removed from the database.

Positional arguments:
  path             Path to the Workspace to be deleted.

Optional arguments:
  --discard        Do not back up unmanaged files.
  --id identifier  Identifier of the Workspace to be deleted.
  --unload MODE    Specify handling of IVPs that will be unloaded from the workspace.  
		    MODE is integer 0-2:
			0 (default) - block unload for open files, 
                       1 - block unload for open+modified files (unmodified files will be reverted),
                       2 - same as 1 but unopened modified files will be backed up to BACKUP_DIR. 
                       Higher mode number gives lower performance.
  -h, --help       Show this help message and exit

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

Examples

> pi ws delete ws2
Successfully deleted Workspace '/tmp/workspaces/ws2'.