Skip to main content
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

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

DELETE https://api-observability.browserstack.com/ext/v1/builds/{build_uuid}

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_id of a build.

Response attributes 200 OK JSON

Response

{
  "success": true
}
  • success Boolean

    Indicates whether the build is deleted successfully.

Delete multiple builds

DELETE https://api-observability.browserstack.com/ext/v1/projects/{project_id}/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_id of 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.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Download Copy Check Circle