src/Jaspersoft/Service/UserService.php
public function deleteAttributes(User $user, $attributes = null)
    {
        $url = self::makeAttributeUrl($user->username, $user->tenantId);
        if (!empty($attributes)) {
            $url .= '?' . Util::query_suffix(array('name' => $attributes));
        }
        return $this->service->prepAndSend($url, array(204), 'DELETE', null, false);
    }
public function deleteAttributes(User $user, $attributes = null)
    {
        $url = self::makeAttributeUrl($user->username, $user->tenantId);
        if (!empty($attributes)) {
            $url .= '?' . Util::query_suffix(array('name' => $attributes));
        }
        return $this->service->prepAndSend($url, array(204), 'DELETE', null, false);
    }
public function deleteAttributes ( User $ user , $ attributes = null ) { $ url = self :: makeAttributeUrl ( $ user -> username , $ user -> tenantId ) ; if ( ! empty ( $ attributes ) ) { $ url .= '?' . Util :: query_suffix ( array ( 'name' => $ attributes ) ) ; } return $ this -> service -> prepAndSend ( $ url , array ( 204 ) , 'DELETE' , null , false ) ; }
Remove all attributes, or specific attributes from a user.

@param \Jaspersoft\Dto\User\User $user
@param array $attributes
@return bool
Remove all attributes or specific attributes from a user .