Delete a user

This API is used to delete an existing user.

Example API call

/lcapi?book=1&collection=1&target=admin&action=delete_users&userids=n_1459755986251_1459760602455

Parameters

ParameterDescription
targetadmin
actiondelete_user
useridsID of the user to be deleted
bookThe id of the publication, an integer, such as 1.
collection The id of the collection, an integer, such as 1.

Returns

On success
Returns a list of users that doesn't include the specified user.
<USERS>
     <USERBODY>
          <USERITEM STATUS="" USER_ID="admin">
			            <LOGIN>admin</LOGIN>
			            <GROUP>ADMINISTRATOR</GROUP>
			            <LAST_NAME/>
			            <FIRST_NAME/>
			            <COMPANY/>
			            <COMPCODE/>
	        	</USERITEM>
          <USERITEM STATUS="" USER_ID="guest">
			            <LOGIN>guest</LOGIN>
			            <GROUP>GUEST</GROUP>
			            <LAST_NAME/>
			            <FIRST_NAME/>
			            <COMPANY/>
			            <COMPCODE/>
		        </USERITEM>
	    </USERBODY>
</USERS>
On failure
The user is not deleted. Returns a list of users that includes the specified user. In this example, the user with the name newUser is not deleted.
<USERS>
     <USERBODY>
          <USERITEM STATUS="" USER_ID="admin">
               <LOGIN>admin</LOGIN>
               <GROUP>ADMINISTRATOR</GROUP>
               <LAST_NAME/>
               <FIRST_NAME/>
               <COMPANY/>
               <COMPCODE/>
          </USERITEM>
          <USERITEM STATUS="" USER_ID="n_1459755986251_1459759113360">
               <LOGIN>newUser</LOGIN>
               <GROUP>EDITOR</GROUP>
               <LAST_NAME>newUser</LAST_NAME>
               <FIRST_NAME>newUser</FIRST_NAME>
               <COMPANY/>
               <COMPCODE/>
          </USERITEM>
          <USERITEM STATUS="" USER_ID="guest">
               <LOGIN>guest</LOGIN>
               <GROUP>GUEST</GROUP>
               <LAST_NAME/>
               <FIRST_NAME/>
               <COMPANY/>
               <COMPCODE/>
          </USERITEM>
     </USERBODY>
</USERS>