Share this page

# Returns or deletes a script by ID

## Description

Returns or deletes a script by the specified script or zip ID.

## URL

Copy code
Script ID:

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/scripts/{ID}

Copy code
Zip ID:

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/scripts/{ID}/zip

## Remarks

None

## HTTP Method

GET: `scripts/{ID}` returns the script metadata. `scripts/{ID}/zip` returns the zip archive of the script.

DELETE: Deletes the script.

## Request

Headers:

Content-Type: application/xml

Cookies:

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

Request Body:

GET: No request body.

DELETE: No request body.

Request Example
Copy code

    GET http://<LRE_Server>/LoadTest/rest/domains/TEST_DOMAIN/projects/TEST_PROJECT/scripts/125
    Content-Type: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

## Response

Headers:

One of:

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

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

GET: Returns the data on the entity in the script entity XML or equivalent JSON string.

DELETE: No body returned.

## See Also

Upload or retrieve scripts
Create 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)