Delete build API in Test Reporting & Analytics
Use this API to delete a single build or multiple builds in a project. Deleted builds and their test results are removed permanently and you can’t recover them.
Delete a build
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X DELETE "https://api-observability.browserstack.com/ext/v1/builds/aurqstxel4tuyuotovswodqdbck7kjmzd0krubxg"
-
build_uuid* String
The UUID of the build you want to delete. Pass it as a path parameter. Use the Get build list API to find the
build_idof a build.
Response attributes 200 OK JSON
Response
{
"success": true
}
-
success Boolean
Indicates whether the build is deleted successfully.
Delete multiple builds
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X DELETE "https://api-observability.browserstack.com/ext/v1/projects/941541/builds" \
-H "Content-Type: application/json" \
-d '{
"build_ids": [
"rggjdcyasl2saunek2bejgvmt2l2eavylfsj9nxh",
"zw4ohoqjrdjnxodvreaii6duhgp6hb9v6fhimasq"
]
}'
-
project_id* Integer
The ID of the project that contains the builds. Pass it as a path parameter. Use the Get project list API to find the project ID.
-
build_ids* Array
The UUIDs of the builds you want to delete. Use the Get build list API to find the
build_idof each build.
Response attributes 200 OK JSON
Response
{
"success": true
}
-
success Boolean
Indicates whether the builds are deleted successfully.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.