Delete QR Code
Delete a QR code from your workspace.
DELETE
/qr-codes/:idHeaders
| Header | Required | Description |
|---|---|---|
X-API-Key | Required | Your API key |
QR-Version | Optional | API version (e.g., 2026-02-16) |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The QR code ID |
warning
Deleted QR codes are moved to trash (soft delete). The short URL will return a 404 when scanned. Analytics data is preserved but no longer accessible via the API.
Request
- cURL
- JavaScript
- Python
curl -X DELETE "https://integration-api.qr-build.com/qr-codes/qr-aBc123XyZ9" \
-H "X-API-Key: qrb_live_your_api_key_here"
const response = await fetch(
"https://integration-api.qr-build.com/qr-codes/qr-aBc123XyZ9",
{
method: "DELETE",
headers: { "X-API-Key": "qrb_live_your_api_key_here" },
}
);
const data = await response.json();
import requests
response = requests.delete(
"https://integration-api.qr-build.com/qr-codes/qr-aBc123XyZ9",
headers={"X-API-Key": "qrb_live_your_api_key_here"},
)
data = response.json()
Response
{
"success": true,
"message": "QR code deleted successfully"
}
Error — Not Found
{
"success": false,
"error": {
"code": "QR_NOT_FOUND",
"message": "QR code not found"
}
}