QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Delete a code

Permanently deletes a code and its scan history.

Its short link stops working, and this can't be undone. To pause a code and keep its scans, archive it with PATCH instead.

DELETE
/codes/{id}

Authorization

oauth2 codes:write
headerAuthorizationBearer <token>

An OAuth 2.0 access token, sent as Authorization: Bearer <token>. Register an app in Settings → Developers, send the user through authorization (PKCE S256), then exchange the code for a token. Access tokens last 1 hour; refresh tokens 30 days. Step by step.

Scope: codes:write

Path Parameters

id*string

The code's id

Length1 <= length <= 64

Response Body

Deleted

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.qrdx.dev/v1/codes/cm5code0spring0menu00001'
Example Response
{  "data": {    "id": "cm5code0spring0menu00001",    "deleted": true  }}

Last updated on