src/org/ohmage/lib/OhmageApi.java
public void deleteUser(final String authenticationToken,
			final String client, 
			final Collection<String> usernames) 
			throws ApiException, RequestErrorException {
		
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put(InputKeys.AUTH_TOKEN, authenticationToken);
		parameters.put(InputKeys.CLIENT, client);
		if(usernames != null) {
			parameters.put(
					InputKeys.USER_LIST, 
					StringUtils.collectionToStringList(
							usernames, 
							InputKeys.LIST_ITEM_SEPARATOR
						)
				);
		}
		
		try {
			processJsonResponse(
					makeRequest(
							new URL(url.toString() + RequestBuilder.getInstance().getApiUserDelete()),
							parameters,
							false
					),
					null
			);
		}
		catch(MalformedURLException e) {
			throw new ApiException("The URL was incorrectly created.", e);
		}
		catch(IllegalArgumentException e) {
			throw new ApiException("The response was not proper JSON.", e);
		}
	}
/**
	 * Deletes a user. The requesting user must be an admin.
	 * 
	 * @param authenticationToken The requesting user's authentication token.
	 * 
	 * @param client The client value.
	 * 
	 * @param usernames A collection of usernames of the users to be deleted.
	 * 
	 * @throws ApiException Thrown if there is a library error.
	 * 
	 * @throws RequestErrorException Thrown if the server returns an error.
	 */
Deletes a user. The requesting user must be an admin.

@param authenticationToken The requesting user's authentication token.

@param client The client value.

@param usernames A collection of usernames of the users to be deleted.

@throws ApiException Thrown if there is a library error.

@throws RequestErrorException Thrown if the server returns an error.
Deletes a user . The requesting user must be an admin . @param authenticationToken The requesting user ' s authentication token . @param client The client value . @param usernames A collection of usernames of the users to be deleted . @throws ApiException Thrown if there is a library error . @throws RequestErrorException Thrown if the server returns an error .
public void deleteUser(final String authenticationToken,
			final String client, 
			final Collection<String> usernames) 
			throws ApiException, RequestErrorException {
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put(InputKeys.AUTH_TOKEN, authenticationToken);
		parameters.put(InputKeys.CLIENT, client);
		if(usernames != null) {
			parameters.put(
					InputKeys.USER_LIST, 
					StringUtils.collectionToStringList(
							usernames, 
							InputKeys.LIST_ITEM_SEPARATOR
						)
				);
		}
		try {
			processJsonResponse(
					makeRequest(
							new URL(url.toString() + RequestBuilder.getInstance().getApiUserDelete()),
							parameters,
							false
					),
					null
			);
		}
		catch(MalformedURLException e) {
			throw new ApiException("The URL was incorrectly created.", e);
		}
		catch(IllegalArgumentException e) {
			throw new ApiException("The response was not proper JSON.", e);
		}
	}
public void deleteUser ( final String authenticationToken , final String client , final Collection < String > usernames ) throws ApiException , RequestErrorException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( InputKeys . AUTH_TOKEN , authenticationToken ) ; parameters . put ( InputKeys . CLIENT , client ) ; if ( usernames != null ) { parameters . put ( InputKeys . USER_LIST , StringUtils . collectionToStringList ( usernames , InputKeys . LIST_ITEM_SEPARATOR ) ) ; } try { processJsonResponse ( makeRequest ( new URL ( url . toString ( ) + RequestBuilder . getInstance ( ) . getApiUserDelete ( ) ) , parameters , false ) , null ) ; } catch ( MalformedURLException e ) { throw new ApiException ( "The URL was incorrectly created." , e ) ; } catch ( IllegalArgumentException e ) { throw new ApiException ( "The response was not proper JSON." , e ) ; } }
Deletes a user.
Deletes a user .