Skip to main content

Delete Variables (by IDs)

The Delete Variables (by IDs) endpoint removes one or more variables from your knowledge base or a template folder in a single call, along with their versions, tags, and (for image variables) their stored files.

When to use it​

Use this endpoint to let users bulk-clean their variable library, instead of calling a single-variable delete endpoint in a loop.

Example request​

curl -X DELETE "https://api.turbodocx.com/Variable/Bulk/Action" \
-H "Authorization: Bearer $TURBODOCX_API_KEY" \
-H "x-rapiddocx-org-id: $TURBODOCX_ORG_ID" \
-H "Content-Type: application/json" \
-d '{"ids": ["e4f5a6b7-8c9d-4e0f-a1b2-3c4d5e6f7a8b"]}'

Each entry in ids is a variableMapId, the same id returned by Read Variables (Folder).

Example response​

On success the endpoint returns 200 OK with an empty data object:

{
"data": {}
}

Common errors​

StatusWhenResponse body
401Missing or invalid API key/token, or the organization cannot be resolvedEmpty (status only)
403The key's role is not administrator, contributor, or userEmpty (status only)
400ids is missing or not an array{ "message", "type": "ValidationError", "data": { "errors": [...] } }