src/Jaspersoft/Service/UserService.php
public function deleteUser(User $user)
    {
        $url = self::makeUserUrl($user->tenantId, $user->username);
        $this->service->prepAndSend($url, array(204), 'DELETE', null, false, 'application/json', 'application/json');
	}
public function deleteUser(User $user)
    {
        $url = self::makeUserUrl($user->tenantId, $user->username);
        $this->service->prepAndSend($url, array(204), 'DELETE', null, false, 'application/json', 'application/json');
	}
public function deleteUser ( User $ user ) { $ url = self :: makeUserUrl ( $ user -> tenantId , $ user -> username ) ; $ this -> service -> prepAndSend ( $ url , array ( 204 ) , 'DELETE' , null , false , 'application/json' , 'application/json' ) ; }
This function will delete a user

First get the user using getUsers(), then provide the user you wish to delete
as the parameter for this function.

@param \Jaspersoft\Dto\User\User $user
This function will delete a user