Objective
This method deletes a Workspace from the DM library. The Workspace must be related with the user whose credentials are provided. DST must be provided.
Notes: DeleteWorkspaceDST can’t delete a Workspace for another user in the DM library.
Parameters
Parameter | Description | Type |
library | eDOCS library | String |
user | User name | String |
password | User password | String |
workspaceName | Name of the Workspace to be deleted. | String |
dbSchema | Database schema. By default is set to “DOCSADM” if an empty string is passed. | String |
client | Optional parameter for the client code | String |
project | Optional parameter for the project code | String |
Rest Invoke
- http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
- UriTemplate:
- “/DeleteWorkspace/?library={library}&user={user}&password={password}&workspaceName={workspaceName}&dbSchema={dbSchema}&client={client}&project={project}”
- “/DeleteWorkspaceDST/?library={library}&user={user}&dst={dst}&workspaceName={workspaceName}&dbSchema={dbSchema}&client={client}&project={project}”
Example
http://localhost:8732/GSService/xml/DeleteWorkspace/?library=DMTESTLEGAL&user=admin&password=owc123&workspaceName=prueba&dbSchema=DOCSADM
The method returns 0 if the Workspace has been deleted or an error.
DST Example
http://localhost:8732/GSService/xml/DeleteWorkspaceDST/?library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&workspaceName=prueba&dbSchema=DOCSADM
Error
Check the edocs.log file if errors arise in the deletion process.