API Documentation

User.Delete

User.Delete

Deletes the specified user, assuming that you have privileges to do so.

Parameters and required information

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

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

Return Codes

Success

Status: success
The user 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 USERID attribute is required in the USER.DELETE function
The USERID was not passed along.
505: Restricted - This user is not authorized to delete users
This user is not authorized to delete a user.

HTTP POST

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