For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content
prerunDelete pre run from our lambda storage
TestMu AI
StatusCommunityBlog
prerun

Delete pre run from our lambda storage

This API deletes a pre run executable script from our lambda storage. Since pre run executable name should be unique, this API is useful if you want to re-upload your updated pre run script with the name same as the previous one.

DEL
/files/delete
Delete pre run from our lambda storage
curl --request DELETE \
--url "https://api.lambdatest.com/automation/api/v1/files/delete" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"file_path": "<file_path>"
}'
{
"message": "File have been successfully deleted from our lambda storage",
"status": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

To delete a pre run executable

file_pathstringrequired

file path of pre run file in our lambda storage. To delete a pre run, you can either specify pre_run or post_run file path. You can get file_path from the GET /files API

Response

application/json

Successful operation

messagestring
statusstring
Delete pre run from our lambda storage
curl --request DELETE \
--url "https://api.lambdatest.com/automation/api/v1/files/delete" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"file_path": "<file_path>"
}'
{
"message": "File have been successfully deleted from our lambda storage",
"status": "success"
}