Delete multiple quantum jobs by their job QRNs.

Query Parameters:

  • qrns (string, required): JSON array of job QRNs to delete (e.g., ["qrn1", "qrn2"])

Returns:

  • Object containing arrays of successfully deleted and failed job QRNs

Raises:

  • 422: Validation error if the qrns parameter is invalid
DELETE/jobs

Authorizations

X-API-KEYstringheaderrequired

Authenticate requests using an API key linked to your qBraid account. Obtain your key by registering or logging in at account.qbraid.com.

Query Parameters

qrnsstringrequired

JSON array of job QRNs to delete (e.g., ["qbraid:job:abc123", "qbraid:job:xyz789"])

Response

200Successful Response
successbooleanrequired

Whether the operation completed

dataobjectrequired
422Validation Error
Delete Multiple Jobs
curl --request DELETE \
  --url https://api-v2.qbraid.com/api/v1/jobs?qrns=%3Cqrns%3E \
  --header 'X-API-KEY: <api-key>'
import requests

url = "https://api-v2.qbraid.com/api/v1/jobs?qrns=%3Cqrns%3E"
headers = {
    "X-API-KEY": "<api-key>"
}

response = requests.delete(url, headers=headers)
print(response.json())
const url = "https://api-v2.qbraid.com/api/v1/jobs?qrns=%3Cqrns%3E";
const options = {
  method: "DELETE",
  headers: {"X-API-KEY":"<api-key>"},
};

const response = await fetch(url, options);
console.log(await response.json());
{
  "success": true,
  "data": {
    "successfulIds": [
      "<string>"
    ],
    "failedIds": {}
  }
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}