Share this page

# Get or delete all groups in test

## Description

Gets or Deletes all groups from a test.

## URL

Copy code

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/tests/{ID}/Groups

## Remarks

None

## HTTP Method

GET: Returns data on groups in the test.

DELETE: Removes all groups from the test.

## Request

Headers:

DELETE: None

GET: Accept: application/xml

Cookies:

Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie};
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

No request body.

Request Example
Copy code

    DELETE http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/tests/1/Groups
    Content-Type: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

## Response

Headers:

DELETE: None

GET: One of:

- Content-Type: application/xml
- Content-Type: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

DELETE: None

GET: Groups data

Example
Copy code

    <Groups xmlns="http://www.hp.com/PC/REST/API">
        <Group>
            <Name>login_logout</Name>
            <Vusers>10</Vusers>
            <Script>
                <ID>1</ID>
            </Script>
            <RTS>
                <Pacing>
                    <NumberOfIterations>1</NumberOfIterations>
                    <StartNewIteration Type="immediately"/>
                </Pacing>
                <ThinkTime Type="replay"/>
                <Log Type="standard">
                    <LogOptions Type="on error">
                        <CacheSize>1</CacheSize>
                    </LogOptions>
                </Log>
            </RTS>
        </Group>
    </Groups>

## See Also

Create a test
Add, update, or remove a group from a test

Tips to improve your search results... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)