Understanding the sws clear Command

You can remove content from the Design Area using the sws clear command.

See Also
Adding and Removing Items in your Workspace
sws clear Command Options

The sws clear command removes an item and its connected substructure from a design workspace. If you are using the item in another structure, it is not removed from the workspace. The command does not affect the structure on the server.

Run the sws clear command on parent items only. You cannot run the command on the following items.

  • child items.
  • mapped items.
  • items containing locked objects.
  • items containing modified objects, unless the --force option is specified.

If sws clear is unable to remove an item from your workspace, the item is not removed from your metadata structure. Instead, the item is marked "pending removal," and saved in your database. You can retry the clear operation or run sws update on the specific item that failed.