API Documentation

Asset.Delete

Asset.Delete

Deletes an asset from a workspace.

Parameters and required information

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

SessionKey
The session key obtained from User.Login
AssetID
The id of a asset obtained from Workspace.GetAssets

Return Codes

Success

Status: success
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 ASSETID attribute is required in the ASSET.DELETE function
The ASSETID was not passed along.
506: This user is not authorized to delete assets
This user is not authorized to delete assets

HTTP POST

<?xml version="1.0" encoding="utf-8"?>  
<request>  
	<sessionkey>string</sessionkey>
	<assetid>string</assetid>     
</request>  
<?xml version="1.0" encoding="utf-8"?>
<mediasilo_response method="Asset.Delete" status="success">
	Asset deleted successfully!
</mediasilo_response>