Syntax: dsdelete [options] handle
The dsdelete command deletes site objects.
Options for dsdelete
-h Help. Display command help text.
-l Level. Write the specified level (debug, trace, info, warn, error, fatal) message to the log file.
-o Owned disposition. When deleting a User object, all content currently owned by the user must either be deleted or transferred to a new owner. The default is to delete all content currently owned by the user. -o user-handle transfers ownership to user-handle all objects currently owned by the user to be deleted.
For example,
dsdelete -o User-40 User-21
Will first ive User-40 ownership of all objects owned by User-21 and then deletes
User-21.
-q Quiet. Run the command in quiet mode. Suppresses all informational messages and user yes/no prompts. Assume Yes to all prompts and proceed at your own risk.
-u User. Run the command as the specified user. Requires a user handle as an argument. By default, all commands run as the admin user, which gives them unrestricted rights and makes admin the author of any edit operations performed by the command. For example, specify -u User-12 causes the command to run as User-12 instead of domain.
-w Walker. DSDelete operation is simulated, without altering the repository, and then displays a list of objects that will be affected by the operation.
-x Expunge. Permanently expunges the object from the DocuShare site, regardless whether the Trashcan is enabled or not. This option supports more than 10 arguments in a command line; use spaces to separate the list of object handles.
Examples using dsdelete
dsdelete handle : if the trashcan is enabled, delete the defined object and place it in the trashcan. If the trashcan is not enabled, expunge the defined object.
dsdelete -x handle : expunges objects from the DocuShare site, regardless whether the Trashcan is enabled or not. If you like to delete more than one object in one operation, use a space to separate the list of handles. For example: dsdelete -x -q -l trace URL-11 URL-13 URL-14 URL-15 URL-16 URL-17 URL-18 URL-19 URL-20 URL-21 URL-22