Bulk Delete QR Codes
Delete multiple QR codes in a single request. Up to 100 QR codes can be deleted at once.
POST
/qr-codes/bulk-deleteHeaders
| Header | Required | Description |
|---|---|---|
X-API-Key | Required | Your API key |
Content-Type | Required | application/json |
QR-Version | Optional | API version (e.g., 2026-02-16) |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | string[] | Required | Array of QR code IDs to delete (1–100 items) |
warning
Deleted QR codes are moved to trash (soft delete). Their short URLs will return a 404 when scanned. IDs that don't exist or are already deleted are silently ignored.
Request
- cURL
- JavaScript
- Python
curl -X POST "https://integration-api.qr-build.com/qr-codes/bulk-delete" \
-H "X-API-Key: qrb_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"ids": ["qr-aBc123XyZ9", "qr-dEf456UvW2", "qr-gHi789RsT3"]
}'
const response = await fetch(
"https://integration-api.qr-build.com/qr-codes/bulk-delete",
{
method: "POST",
headers: {
"X-API-Key": "qrb_live_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
ids: ["qr-aBc123XyZ9", "qr-dEf456UvW2", "qr-gHi789RsT3"],
}),
}
);
const data = await response.json();
import requests
response = requests.post(
"https://integration-api.qr-build.com/qr-codes/bulk-delete",
headers={
"X-API-Key": "qrb_live_your_api_key_here",
"Content-Type": "application/json",
},
json={
"ids": ["qr-aBc123XyZ9", "qr-dEf456UvW2", "qr-gHi789RsT3"],
},
)
data = response.json()
Response
{
"success": true,
"message": "3 QR code(s) deleted successfully"
}