Understanding the sws delete Command

This command deletes objects from your workspace. When using the command to remove an object from your workspace, the object is deleted from the item workspace, and the deletion is captured in the history of changes for the Semiconductor Item revision. The objects being deleted must be locked in the workspace.

See Also
Deleting Content from a Workspace
sws delete Command Options
Updating a Workspace
Checking in Files or Folders

When a folder is supplied, the command always runs recursively on the folder.

The paths specified by the argument can be relative or absolute. Any relative path uses the base directory specified with the --dir option. If the --dir option is not used, then the base directory path uses the current working directory as the default.

You can specify a comment for the delete operation. Specify a text comment with either the --comment option or a file containing a text comment with the --cfile option. If you do not specify a comment, the default comment reads: "Deletes <list of path arguments>."

When --verbose is not specified, the command returns a success message. When --verbose is specified, the output also contains a list of all the file changes committed to the server.

The command fails if:

  • any objects specified are not part of a workspace.
  • no files or folders are specified.
  • the workspace is not up to date.
  • specified files or folders to delete are not locked.
  • the files are locally modified.
If there are locally modified files, you must do one of the following:
  • Run the sws delete command with the --force switch to force removal of the modified object.
  • Check in the local modifications. Then perform the delete, if appropriate.
  • Update your workspace with the --force switch to remove the changes, then perform the delete, if appropriate.