Server Administration > Workflow and SCM Projects > Deleting Projects and Archives From Database > To delete archives from the database using the CLI
  
To delete archives from the database using the CLI
* 
Detailed help on using si deletearchive is available from the CLI using the man command.
From the CLI, use the following command:
si deletearchive [subcommmand] value
where value is used with the --mark subcommand and specifies projects for the current delete session.
* 
The --dump option cannot be used with the si deletearchive command. Using this command deletes archives without creating backups for them. Archive backup (and restore) is not available for individual archives; only projects that include archives. If you require archive backups, use the si deleteproject command instead.
Subcommands for si deleteproject include:
--commit commits the deletion by permanently deleting the marked objects.
--mark starts a delete session by marking objects and their dependents as new candidates. The subcommand determines what objects are to be delete targets (archives to be deleted) and what objects are to be kept candidates.
* 
The Windchill RV&S server only supports one delete session at a time and additional targets cannot be added with a second invocation of the --mark subcommand.
--rollback cancels a delete session leaving the database unchanged. This subcommand can only be used in phases prior to Commit.
--status displays the status of the current delete session.
Command options for si deletearchive include:
--[no]deleteIfInUse, used with the --mark subcommand, specifies if to delete targets that are still in use. Something is marked as in use if it refers to a particular project or archive that is out of tree.
--[no]links, used with the --status subcommand, displays a list of all links that are broken upon commit.
--[no]targets, used with the --status subcommand, displays all delete targets and kept reasons.