Skip to main content
DELETE
/
reports
/
{report_id}
Delete Evaluation Pipeline
curl --request DELETE \
  --url https://api.promptlayer.com/reports/{report_id} \
  --header 'X-API-KEY: <x-api-key>'
{
  "success": true,
  "message": "<string>"
}
Archive a single evaluation pipeline by ID. Prefer this over Delete Reports by Name when you have the report’s ID, since names can collide across pipelines.

Example

import requests

response = requests.delete(
    "https://api.promptlayer.com/reports/456",
    headers={"X-API-KEY": "your-api-key"},
)
# {"success": true, "message": "Report archived successfully"}

Error Responses

StatusError
404Report not found or not accessible

Headers

X-API-KEY
string
required

Your PromptLayer API key.

Path Parameters

report_id
integer
required

ID of the evaluation pipeline to archive.

Response

Pipeline archived successfully

success
boolean
message
string