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

# Fragebogen per API löschen: KYC-Formular entfernen

> Löschen Sie einen KYC-Fragebogen von Didit per API. Referenzierende Workflows müssen angepasst werden. Pay-per-Call, keine Verträge.



Prompt zum Löschen eines Fragebogens über die API
        Prompt in die Zwischenablage kopieren



      
      

\<pre>

\`Delete a Didit questionnaire through the Management API.

Endpoint:
DELETE https://verification.didit.me/v3/questionnaires/{questionnaire_uuid}/

Authentication:
Use the x-api-key header with my Didit API key.

Goal:
\- Remove a questionnaire that I no longer use.

Path parameter:
\- questionnaire_uuid — the per-version questionnaire UUID returned by GET /v3/questionnaires/ or POST /v3/questionnaires/.

Important semantics:
\- Any workflow that references this questionnaire (via a QUESTIONNAIRE feature with config.questionnaire_uuid) must be updated; otherwise sessions created against that workflow will fail at the questionnaire step.
\- Sessions already in progress are not affected — they continue against the snapshot they were created with.
\- Returns 204 No Content on success with an empty body.

Workflow:
1\. Before deleting, list workflows and check which ones reference this questionnaire (workflow_names on the list response, or inspect features in GET /v3/workflows/{settings_uuid}/).
2\. PATCH any workflows to point at a different questionnaire_uuid or remove the QUESTIONNAIRE feature.
3\. Then DELETE the questionnaire.

Example call:
curl -X DELETE "https://verification.didit.me/v3/questionnaires/{questionnaire_uuid}/" \
-H "x-api-key: YOUR_API_KEY"

Failure modes:
\- 401 — missing or malformed x-api-key.
\- 403 — canonical { "detail": "You do not have permission to perform this action." } envelope when the questionnaire belongs to a different application than the API key.
\- 404 — questionnaire not found in this application; calling DELETE again on the same UUID is also 404.

Side effects:
\- Deletes the questionnaire record.

For the full integration shape, see /integration/integration-prompt.`

\</pre>



      
      

Einfügen in



## OpenAPI

````yaml de/openapi-25.json DELETE /v3/questionnaires/{questionnaire_uuid}/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: API für Ausweisverifizierung. Authentifizierung über den x-api-key-Header.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/questionnaires/{questionnaire_uuid}/:
    delete:
      tags:
        - Questionnaires
      summary: Fragebogen löschen
      description: >-
        Eine Fragebogenversion dauerhaft löschen (kann nicht rückgängig gemacht
        werden). Gespeicherte Fragebogenantworten, die mit dieser Version
        verknüpft sind, werden mit ihr gelöscht, und Sitzungen, die darauf
        verweisen, verlieren die Verknüpfung; andere Versionen in derselben
        Gruppe werden nicht gelöscht. Workflows, die darauf verwiesen haben,
        laufen weiter, aber der Fragebogenschritt kann sie nicht mehr laden.
      operationId: delete_questionnaire
      parameters:
        - name: questionnaire_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Versionsspezifische UUID des zu löschenden Fragebogens.
      responses:
        '204':
          description: Fragebogen gelöscht. Der Antwort-Body ist leer.
        '403':
          description: API-Schlüssel fehlt oder ist ungültig.
          content:
            application/json:
              examples:
                Invalid token:
                  value:
                    detail: You do not have permission to perform this action.
        '404':
          description: >-
            Für die authentifizierte Anwendung existiert kein Fragebogen mit
            dieser `questionnaire_uuid`.
          content:
            application/json:
              examples:
                Not found:
                  value:
                    detail: Not found.
        '429':
          description: >-
            Rate-Limit überschritten. Wiederholen Sie die Anfrage mit
            exponentiellem Backoff.
        '500':
          description: Unerwarteter Serverfehler. Kann sicher wiederholt werden.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -X DELETE
            'https://verification.didit.me/v3/questionnaires/11111111-2222-3333-4444-555555555555/'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            client.questionnaires.delete(
                "11111111-2222-3333-4444-555555555555",
            )
        - lang: javascript
          label: Node.js
          source: >-
            import Didit from "@didit-protocol/sdk-node";


            // Reads DIDIT_API_KEY.

            const didit = new Didit();


            await
            didit.questionnaires.delete("11111111-2222-3333-4444-555555555555");
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nif err := client.Questionnaires.Delete(ctx, \"11111111-2222-3333-4444-555555555555\"); err != nil {\n\tlog.Fatal(err)\n}"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            client.questionnaires().delete("11111111-2222-3333-4444-555555555555");
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY.

            $didit = new DiditClient();


            $didit->questionnaires->delete('11111111-2222-3333-4444-555555555555');
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY.
            didit = Didit::Client.new

            didit.questionnaires.delete("11111111-2222-3333-4444-555555555555")
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            await
            client.Questionnaires.DeleteAsync("11111111-2222-3333-4444-555555555555");
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Der API-Schlüssel Ihrer Anwendung, aus Entwickler -> API-Schlüssel in
        der Business Console. Der Primärschlüssel hat Vollzugriff. Ein benannter
        Schlüssel kann im Geltungsbereich eingeschränkt werden: keine, Lese-
        oder Schreibberechtigung pro Ressource, beschränkt auf bestimmte
        Workflows oder genehmigte Sitzungen, auf eine Liste von IP-Adressen und
        auf ein Ablaufdatum. 401 bedeutet, dass der Schlüssel falsch, widerrufen
        oder abgelaufen ist; 403 bedeutet, dass kein Schlüssel gesendet wurde,
        der Schlüssel keinen Zugriff auf diese Ressource oder Aktion hat oder
        die Anfrage von einer Adresse außerhalb seiner IP-Liste stammte; 404 bei
        einer Sitzungsroute bedeutet, dass die Sitzung außerhalb der Workflows
        oder Status des Schlüssels liegt. Ein Schlüssel ohne Medienzugriff
        erhält Bild-, Video- und PDF-URLs als null, und ein Schlüssel ohne
        Schreibberechtigung für Sitzungen erhält Sitzungslinks und Token als
        null. Siehe https://docs.didit.me/console/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.