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.