> ## 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.

# लेन-देन हटाने का API (बैच डिलीट)

> Didit के साथ UUID से निगरानी किए गए लेन-देन स्थायी रूप से हटाएँ या एप्लिकेशन के सभी लेन-देन साफ़ करें। अंतिम रिपोर्ट होने पर हटाना रुक जाता है।



बैच लेन-देन हटाने का API प्रॉम्प्ट
        प्रॉम्प्ट को क्लिपबोर्ड पर कॉपी करें



      
      

\<pre>

\`Delete monitored transactions through the Management API.

Endpoint:
DELETE https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/transactions/delete/

Authentication:
Use the x-api-key header with my Didit API key. The key must carry write:transactions.

Request body — provide one selector:
\{"transaction_uuids": ["abcdef12-3456-7890-abcd-ef1234567890"]}
or
\{"delete_all": true}

Example call:
curl -X DELETE "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/transactions/delete/" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"transaction_uuids": ["abcdef12-3456-7890-abcd-ef1234567890"]}'

Response 204: the selected transactions are deleted.

What is deleted with each transaction:
\- Its parties, tags, notes, payment method links, documents and every stored version of their files.
\- Its rule runs, alerts, provider results, network snapshot and Travel Rule data.
Cases, people and companies stay; their link to the deleted transaction is cleared. Draft regulatory reports stop listing it and are rebuilt without it. Deletion is permanent and cannot be undone.

Failure modes:
\- 400 - no selector supplied: {"transaction_uuids": ["This field is required unless delete_all is true."]}.
\- 409 - at least one selected transaction is listed in a finalized regulatory report. Nothing is deleted. The body has code: in_filed_report and transactions[] with uuid, transaction_id and reports[].
\- 403 - the key cannot delete transactions (requires write:transactions).

After deletion:
Delete the reports named in the 409 response, then repeat this request. See Delete Report.

WARNING — delete_all: true: deletes every transaction in the application with no confirmation and no undo.

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

\</pre>



      
      

यहाँ पेस्ट करें

मॉनिटर किए गए लेन-देन UUID के आधार पर या एक साथ सभी स्थायी रूप से हटाएँ।## क्या हटाया जाता हैहटाया गया लेन-देन उन्हीं रिकॉर्ड्स को अपने साथ ले जाता है जो केवल उसके अपने हैं: उसके पक्ष, टैग, नोट्स, भुगतान विधि के लिंक, दस्तावेज़ और उनकी फ़ाइलों के हर संग्रहीत संस्करण, नियम रन, अलर्ट, प्रदाता परिणाम, नेटवर्क स्नैपशॉट और Travel Rule डेटा।केस, लोग और कंपनियाँ बने रहते हैं; हटाए गए लेन-देन से उनका लिंक साफ़ कर दिया जाता है। ड्राफ़्ट नियामक रिपोर्ट अब हटाए गए लेन-देन को सूचीबद्ध नहीं करतीं और उसके बिना दोबारा बनाई जाती हैं। हटाना स्थायी है और अपरिवर्तनीय है।## हटाने के लिए चुनेंठीक एक सेलेक्टर भेजें:| फ़ील्ड | प्रकार | विवरण |
| - | - | - |
| `transaction_uuids` | UUID\[] | हटाने के लिए Didit लेन-देन UUID। `delete_all` `true` न हो तो अनिवार्य है। |
| `delete_all` | boolean | एप्लिकेशन के हर लेन-देन को हटाएँ। `transaction_uuids` को अनदेखा किया जाता है। |> [!WARNING]
>
> `delete_all: true` एप्लिकेशन के हर लेन-देन को हटा देता है। इसमें कोई पुष्टि चरण नहीं है और इसे वापस नहीं किया जा सकता।## अंतिम रूप दी गई रिपोर्ट के कारण अवरुद्धअगर चुना गया कोई भी लेन-देन अंतिम रूप दी गई नियामक रिपोर्ट में सूचीबद्ध है, तो पूरा अनुरोध `409` लौटाता है और कुछ भी नहीं हटता:```json theme={null}
{
  "detail": "Transactions included in a filed regulatory report cannot be deleted.",
  "code": "in_filed_report",
  "transactions": [
    {
      "uuid": "abcdef12-3456-7890-abcd-ef1234567890",
      "transaction_id": "your-txn-2026-05-17-001",
      "reports": [
        {
          "uuid": "5ec00000-0000-4000-8000-000000000007",
          "report_number": "SAR-0001",
          "report_type": "SAR",
          "case_uuid": "c1a5e000-0000-4000-8000-000000000001"
        }
      ]
    }
  ]
}
```[रिपोर्ट हटाएँ](https://docs.didit.me/hi/management-api/regulatory-reports/delete.md) से हर रिपोर्ट हटाएँ, फिर यह अनुरोध दोबारा भेजें। अगर आपने कई लेन-देन चुने हैं, तो अवरुद्ध लेन-देन हटा दें या पहले उनकी रिपोर्ट हटा दें।## संबंधित- [लेन-देन सूचीबद्ध करें](https://docs.didit.me/hi/management-api/transactions/list.md)
- [लेन-देन प्राप्त करें](https://docs.didit.me/hi/management-api/transactions/get.md)
- [रिपोर्ट हटाएँ](https://docs.didit.me/hi/management-api/regulatory-reports/delete.md)


## OpenAPI

````yaml hi/openapi-25.json DELETE /v3/organization/{organization_id}/application/{application_id}/transactions/delete/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: पहचान सत्यापन API। x-api-key हेडर के साथ प्रमाणीकृत करें।
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/organization/{organization_id}/application/{application_id}/transactions/delete/:
    delete:
      tags:
        - Transactions
      summary: लेन-देन को बैच में हटाएं
      description: >-
        एक या अधिक लेन-देन स्थायी रूप से हटाएं। उन्हें `transaction_uuids` के
        साथ चुनें, या `delete_all: true` के साथ एप्लिकेशन के प्रत्येक लेन-देन को
        हटाएं।


        हटाया गया लेन-देन उन रिकॉर्ड्स के साथ जाता है जो केवल उसके अपने हैं:
        इसके पक्ष, टैग, नोट्स, भुगतान विधि लिंक, दस्तावेज़ और उनकी फ़ाइलों का
        प्रत्येक संग्रहीत संस्करण, नियम रन, अलर्ट, प्रदाता परिणाम, नेटवर्क
        स्नैपशॉट और Travel Rule डेटा। केस, लोग और कंपनियाँ बनी रहती हैं; हटाए गए
        लेन-देन से उनका लिंक साफ़ कर दिया जाता है। ड्राफ़्ट नियामक रिपोर्ट इसे
        सूचीबद्ध करना बंद कर देती हैं और इसके बिना पुनर्गठित की जाती हैं। हटाना
        स्थायी और अपरिवर्तनीय है; कोई पूर्ववत endpoint नहीं है।


        यदि कोई चयनित लेन-देन किसी अंतिम रूप से तैयार नियामक रिपोर्ट में
        सूचीबद्ध है, तो पूरा अनुरोध `409` के साथ अस्वीकार कर दिया जाता है और कुछ
        भी नहीं हटाया जाता है। मुख्य भाग `code: in_filed_report` का उपयोग करता
        है और प्रत्येक लेन-देन और उन रिपोर्टों का नाम देता है जो इसे सूचीबद्ध
        करती हैं। उन रिपोर्टों को हटाएं, फिर अनुरोध दोहराएं।
      operationId: batch_delete_transactions
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: संगठन UUID।
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: एप्लिकेशन UUID।
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              oneOf:
                - title: Selected transactions
                  required:
                    - transaction_uuids
                  properties:
                    transaction_uuids:
                      type: array
                      items:
                        type: string
                        format: uuid
                      description: >-
                        हटाने के लिए Didit लेन-देन UUIDs। आवश्यक जब तक कि
                        `delete_all` सत्य न हो।
                      minItems: 1
                    delete_all:
                      type: boolean
                      enum:
                        - false
                      default: false
                      description: >-
                        जब आप `transaction_uuids` के साथ लेन-देन चुनते हैं तो
                        इसे छोड़ दें या `false` भेजें।
                - title: All transactions
                  required:
                    - delete_all
                  properties:
                    delete_all:
                      type: boolean
                      enum:
                        - true
                      description: >-
                        एप्लिकेशन में प्रत्येक लेन-देन हटाएं।
                        `transaction_uuids` को अनदेखा कर दिया जाता है।
                    transaction_uuids:
                      type: array
                      items:
                        type: string
                        format: uuid
                      description: जब `delete_all` true हो तब अनदेखा किया जाता है।
            examples:
              Selected transactions:
                value:
                  transaction_uuids:
                    - abcdef12-3456-7890-abcd-ef1234567890
                    - 12345678-90ab-cdef-1234-567890abcdef
              All transactions:
                value:
                  delete_all: true
      responses:
        '204':
          description: चयनित लेन-देन हटा दिए गए।
        '400':
          description: कोई लेन-देन चयनकर्ता प्रदान नहीं किया गया था।
          content:
            application/json:
              schema:
                type: object
                properties:
                  transaction_uuids:
                    type: array
                    items:
                      type: string
              example:
                transaction_uuids:
                  - This field is required unless delete_all is true.
        '403':
          description: >-
            API कुंजी लेन-देन नहीं हटा सकती। endpoint के लिए
            `write:transactions` की आवश्यकता है।
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
        '409':
          description: >-
            कम से कम एक चयनित लेन-देन अंतिम रूप दी गई विनियामक रिपोर्ट में
            सूचीबद्ध है। कुछ भी हटाया नहीं गया है।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InFiledReportError'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl (selected transactions)
          source: >-
            curl -X DELETE
            'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/transactions/delete/'
            \
              -H 'x-api-key: YOUR_API_KEY' \
              -H 'Content-Type: application/json' \
              -d '{"transaction_uuids": ["abcdef12-3456-7890-abcd-ef1234567890"]}'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            # and DIDIT_APPLICATION_ID.
            client = Didit()

            client.transactions.batch_delete(
                body={
                    "transaction_uuids": ["abcdef12-3456-7890-abcd-ef1234567890", "12345678-90ab-cdef-1234-567890abcdef"],
                },
            )
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            const didit = new Didit();

            await didit.transactions.batchDelete({
              transaction_uuids: ["abcdef12-3456-7890-abcd-ef1234567890", "12345678-90ab-cdef-1234-567890abcdef"],
            });
        - lang: java
          label: Java
          source: >-
            import java.util.List;

            import me.didit.Didit;

            import me.didit.types.TransactionsBatchDeleteParams;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            Didit client = new Didit();


            client.transactions().batchDelete(TransactionsBatchDeleteParams.builder()
                    .putAdditionalProperty("transaction_uuids", List.of("abcdef12-3456-7890-abcd-ef1234567890", "12345678-90ab-cdef-1234-567890abcdef"))
                    .build());
        - lang: php
          label: PHP
          source: |-
            <?php

            require 'vendor/autoload.php';

            use Didit\DiditClient;

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            $didit = new DiditClient();

            $didit->transactions->batchDelete([
                'transaction_uuids' => ['abcdef12-3456-7890-abcd-ef1234567890', '12345678-90ab-cdef-1234-567890abcdef'],
            ]);
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            # and DIDIT_APPLICATION_ID.
            didit = Didit::Client.new

            didit.transactions.batch_delete(
              body: {
                transaction_uuids: ["abcdef12-3456-7890-abcd-ef1234567890", "12345678-90ab-cdef-1234-567890abcdef"],
              }
            )
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using Didit;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            using var client = new DiditClient();


            await client.Transactions.BatchDeleteAsync(new
            TransactionsBatchDeleteParams

            {
                TransactionUuids = new string[] { "abcdef12-3456-7890-abcd-ef1234567890", "12345678-90ab-cdef-1234-567890abcdef" },
            });
components:
  schemas:
    InFiledReportError:
      type: object
      description: >-
        हटाने से इनकार कर दिया गया है क्योंकि चयनित डेटा एक अंतिम विनियामक
        रिपोर्ट में है। कुछ भी हटाया नहीं गया है। रिपोर्ट हटाएं, फिर अनुरोध
        दोहराएं।
      required:
        - detail
        - code
      properties:
        detail:
          type: string
        code:
          type: string
          enum:
            - in_filed_report
          description: >-
            अंतिम रूप दी गई नियामक रिपोर्ट द्वारा अवरुद्ध विलोपन के लिए स्थिर
            त्रुटि कोड।
        reports:
          type: array
          items:
            $ref: '#/components/schemas/FiledRegulatoryReport'
          description: >-
            ऐसी रिपोर्ट जो किसी व्यक्ति, कंपनी, केस या सत्र के विलोपन को ब्लॉक
            करती हैं।
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/FiledReportTransaction'
          description: >-
            लेन-देन जो किसी लेन-देन विलोपन को ब्लॉक करते हैं, प्रत्येक उन
            रिपोर्टों के साथ जो इसे सूचीबद्ध करती हैं।
    FiledRegulatoryReport:
      type: object
      description: एक फ़ाइनलाइज़ की गई नियामक रिपोर्ट जो अनुरोधित विलोपन को रोकती है।
      required:
        - uuid
        - report_number
        - report_type
        - case_uuid
      properties:
        uuid:
          type: string
          format: uuid
          description: रिपोर्ट UUID।
        report_number:
          type: string
          description: कंसोल में दिखाई गई रिपोर्ट संख्या (उदाहरण के लिए, SAR-0001)।
        report_type:
          type: string
          enum:
            - SAR
            - STR
            - CTR
            - TTR
            - UTR
            - IFT
            - CBR
            - TFR
          description: नियामक रिपोर्ट प्रकार।
        case_uuid:
          type: string
          format: uuid
          description: वह केस जिससे यह रिपोर्ट संबंधित है।
    FiledReportTransaction:
      type: object
      description: >-
        एक लेन-देन जिसे हटाया नहीं जा सकता क्योंकि एक अंतिम रूप दी गई नियामक
        रिपोर्ट में इसे सूचीबद्ध किया गया है।
      required:
        - uuid
        - transaction_id
        - reports
      properties:
        uuid:
          type: string
          format: uuid
          description: Didit लेन-देन UUID।
        transaction_id:
          type: string
          description: लेन-देन बनाते समय प्रदान किया गया लेन-देन पहचानकर्ता।
        reports:
          type: array
          items:
            $ref: '#/components/schemas/FiledRegulatoryReport'
          description: अंतिम रूप दी गई रिपोर्टें जो इस लेन-देन को सूचीबद्ध करती हैं।
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        आपकी एप्लिकेशन की API कुंजी, Business Console में Developers -> API keys
        से। प्राथमिक कुंजी के पास पूर्ण एक्सेस होता है। एक नामित कुंजी को स्कोप
        किया जा सकता है: प्रति संसाधन none, read या write, कुछ वर्कफ़्लो या
        स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और समाप्ति तिथि तक
        सीमित। 401 का अर्थ है कि कुंजी गलत है, निरस्त कर दी गई है या उसकी
        समय-सीमा समाप्त हो गई है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई थी,
        कुंजी के पास इस संसाधन या कार्रवाई का एक्सेस नहीं है, या अनुरोध उसकी IP
        सूची से बाहर के पते से आया था; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी
        के वर्कफ़्लो या स्थितियों से बाहर है। मीडिया एक्सेस के बिना एक कुंजी को
        छवि, वीडियो और PDF URL null के रूप में प्राप्त होते हैं, और सत्र write
        के बिना एक कुंजी को सत्र लिंक और token null के रूप में प्राप्त होते हैं।
        देखें https://docs.didit.me/console/api-keys।

````

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