API Documentation

Workspace.Delete

Workspace.Delete

Deletes the specified workspace, assuming that you have privileges to do so. If you are not the creator of the workspace then it only deletes it for you and not all users.

Parameters and required information

Here's a list of all the parameters you'll need to pass to the Workspace.Delete method. All of the parameters are required unless otherwise noted.

SessionKey
The session key obtained from User.Login
WorkspaceID
The ID of the workspace you want to delete

Return Codes

Success

Status: success
The workspace has been deleted and you receive a result message.
Status: fail
The call was not successful. Either the session has expired or the XML was not formatted correctly.

Error

5002: Authentication Failure
No active session exists with this session key and developer account id. The user session has expired and the user has to to log on again.
101: The WORKSPACEID attribute is required in the WORSKPACE.DELETE function
The WORKSPACEID was not passed along.
505: Restricted - This user is not authorized to delete this workspace
This user is not authorized to delete a workspace.
506: Workspace contains assets
This workspace currently contains assets, please login and empty the workspace first.

HTTP POST

<?xml version="1.0" encoding="utf-8"?>  
<request>  
	<sessionkey>string</sessionkey>
	<workspaceid>integer</workspaceid>     
</request>  
<?xml version="1.0" encoding="utf-8"?>
<mediasilo_response method="Workspace.Create" status="success">
	<result>
		Workspace deleted successfully!
	</result>
</mediasilo_response>