public void delete ( boolean notifyUser , boolean force ) { String queryString = new QueryStringBuilder ( ) . appendParam ( "notify" , String . valueOf ( notifyUser ) ) . appendParam ( "force" , String . valueOf ( force ) ) . toString ( ) ; URL url = USER_URL_TEMPLATE . buildWithQuery ( this . getAPI ( ) . getBaseURL ( ) , queryString , this . getID ( ) ) ; BoxAPIRequest request = new BoxAPIRequest ( this . getAPI ( ) , url , "DELETE" ) ; BoxAPIResponse response = request . send ( ) ; response . disconnect ( ) ; }
Deletes a user from an enterprise account .