> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Unassign QR Codes from a folder

> POST /folder/{id}/bulk_unassign/

Removes one or more QR Codes from a folder, moving them to "Uncategorized" — it never deletes or trashes the QR Code itself.

<Note>
  Requires the account's `FOLDER_MANAGEMENT` quota and the `FOLDER_CAN_CREATE_AND_MANAGE` permission. See the [Management API overview](/api-reference/management-api/overview) for authentication details.
</Note>

<ParamField path="id" type="integer" required>
  Folder ID to unassign QR Codes from. Unlike [Move QR Codes into a folder](/api-reference/management-api/folders/bulk-move), there is no separate `from` field — the source is always this folder.
</ParamField>

<ParamField body="qr_code_ids" type="array" required>
  Either a list of `qrid` strings currently in this folder, or the single-element sentinel `["all"]` to unassign every matching QR Code (optionally narrowed by `filter`/`search` below).
</ParamField>

<ParamField body="filter" type="object">
  Only honored alongside `qr_code_ids: ["all"]`. Same whitelisted keys as [Move QR Codes into a folder](/api-reference/management-api/folders/bulk-move).
</ParamField>

<ParamField body="search" type="object">
  Only honored alongside `qr_code_ids: ["all"]` — `{"search_value": "..."}`.
</ParamField>

<Note>
  Only QR Codes you own, currently in this folder, and not soft-deleted are eligible. If this folder's `folder_type` is `page`, only page-builder QR Codes are unassigned by an `["all"]` request (and vice versa for `qr` folders).
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.scanova.io/folder/42/bulk_unassign/' \
    --header 'Authorization: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "qr_code_ids": ["all"],
      "filter": { "tags": "Wholescale" }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully unassigned 1 QR codes",
    "unassigned_count": 1
  }
  ```
</ResponseExample>

`404` if `id` isn't owned by this account.

## Related

* [Move QR Codes into a folder](/api-reference/management-api/folders/bulk-move) — the inverse operation.
* [List QR Codes in a folder](/api-reference/management-api/folders/qr-codes) — confirm the result.
* [Management API overview](/api-reference/management-api/overview) — the auth scheme and quota architecture this endpoint is part of.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /folder/{id}/bulk_unassign/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /folder/{id}/bulk_unassign/:
    post:
      summary: Unassign QR codes from a folder
      description: >-
        Requires the account's FOLDER_MANAGEMENT quota and the
        FOLDER_CAN_CREATE_AND_MANAGE permission. Source is always the folder in
        the path; there is no from field (contrast with bulk_move).
      operationId: bulkUnassignFromManagedFolder
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            example:
              qr_code_ids:
                - all
              filter:
                tags: Wholescale
      responses:
        '200':
          description: QR codes unassigned.
          content:
            application/json:
              example:
                message: Successfully unassigned 1 QR codes
                unassigned_count: 1
        '404':
          description: No folder with this id owned by this account.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````