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

# حذف تقرير FIU عبر API

> احذف في Didit تقريراً تنظيمياً، سواء كان مسودةً أو نهائياً، مع نصه السردي المنسوخ وروابط المعاملات وملفات goAML XML وPDF الخاصة به.



مطالبة حذف التقرير عبر API
        نسخ الموجّه إلى الحافظة



      
      

\<pre>

\`Delete a regulatory (FIU) report through the Management API.

Endpoint:
DELETE https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/regulatory-reports/{report_uuid}/

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

Request body:
A draft or validated report can be deleted without a body.
A finalized report requires:
\{"confirm_delete": true}

Example call:
curl -X DELETE "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/regulatory-reports/{report_uuid}/" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"confirm_delete": true}'

What is deleted:
\- The report, its copied narrative, reasons and other report fields.
\- Its links to transactions.
\- Its generated goAML XML and PDF, including every stored version of those files.
The report disappears from report lists, and previously issued download URLs stop working. The case, transactions, people and companies are NOT deleted. Deletion is permanent and cannot be undone.

Failure modes:
\- 400 - a finalized report was sent without confirm_delete: true. Nothing is deleted.
\- 403 - the key cannot delete reports (requires write:cases).
\- 404 - the report does not exist in this application or was already deleted.
\- 409 - code report_deletion_pending: the report is already being deleted. Repeat the request to finish.
\- 503 - code report_storage_unavailable: the report files could not be erased right now. The report is still in place. Repeat the request.

After deletion:
A delete of a person, company, transaction, case or session that was blocked by this report can be repeated. See Delete Users, Delete Businesses, Batch Delete Transactions, Delete Case and Delete Session.

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

\</pre>



      
      

الصق في

احذف التقرير التنظيمي نهائياً.## ما الذي يُحذفيُحذف التقرير، وما يتضمنه من السرد المنسوخ والأسباب وسائر حقول التقرير، وروابطه بالمعاملات، وملفَي goAML XML وPDF اللذين أُنشئا له. تُمحى كل نسخة مخزَّنة من هذه الملفات. يختفي التقرير من قوائم التقارير، وتتوقف روابط التنزيل التي صدرت سابقاً عن العمل.لا تُحذف الحالة والمعاملات والأشخاص والشركات. فالتقرير لا يأخذ بياناتها معه. الحذف نهائي ولا يمكن التراجع عنه.## التأكيديُحذف التقرير إذا كان مسودة أو تم التحقق من صحته، دون جسم للطلب.يتطلب حذف التقرير الذي تم إنهاؤه تأكيداً صريحاً:```json theme={null}
{ "confirm_delete": true }
```ومن دون هذا التأكيد تعيد الواجهة الاستجابة `400` ولا يُحذف شيء.## إذا تعذّر محو الملفات الآنتعني الاستجابة `503` مع `code: report_storage_unavailable` أن ملفات التقرير تعذّر محوها في الوقت الحالي. التقرير ما زال قائماً، لذا أعد الطلب. وتعني الاستجابة `409` مع `code: report_deletion_pending` أن عملية حذف لهذا التقرير قيد التنفيذ بالفعل: أعد الطلب لإتمامها.## حل حذف محظورإذا أعاد حذف شخص أو شركة أو معاملة أو حالة أو جلسة الاستجابة `409` مع `code: in_filed_report`، فإن الاستجابة تسمّي التقارير التي تحتفظ بالبيانات. احذف كل تقرير من هنا، ثم أعد طلب الحذف المحظور.## ذو صلة- [عرض قائمة التقارير](https://docs.didit.me/ar/management-api/regulatory-reports/list.md)
- [إنهاء التقرير](https://docs.didit.me/ar/management-api/regulatory-reports/finalize.md)
- [حذف الحالة](https://docs.didit.me/ar/management-api/cases/delete.md)
- [حذف المعاملات دفعة واحدة](https://docs.didit.me/ar/management-api/transactions/delete.md)


## OpenAPI

````yaml ar/openapi-25.json DELETE /v3/organization/{organization_id}/application/{application_id}/regulatory-reports/{report_uuid}/
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}/regulatory-reports/{report_uuid}/:
    delete:
      tags:
        - Regulatory Reports
      summary: حذف التقرير
      description: >-
        حذف تقرير تنظيمي نهائيًا. يُمحى التقرير وسرده وأسبابه المنسوخة وروابط
        معاملاته وملفات goAML XML وPDF المنشأة الخاصة به، بما في ذلك كل نسخة
        مخزنة من تلك الملفات. يختفي التقرير من القوائم وتتوقف روابط التنزيل عن
        العمل. لا تُحذف السجلات الأخرى، بما في ذلك الحالة والمعاملات والأشخاص
        والشركات. لا يمكن التراجع عن هذا الإجراء.


        يمكن حذف تقرير مسودة أو مُتحقَّق منه دون جسم الطلب. يتطلب حذف تقرير
        مكتمل إرسال `confirm_delete: true` في جسم الطلب. إذا كان التقرير غير
        موجود، يُرجع الطلب `404`؛ وإذا أُرسل تقرير مكتمل دون تأكيد، يُرجع `400`
        ولا يُحذف أي شيء.
      operationId: delete_regulatory_report
      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 للتطبيق.
        - name: report_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            example: 5ec00000-0000-4000-8000-000000000007
          description: معرّف UUID للتقرير.
      requestBody:
        required: false
        description: مطلوب فقط للتقرير النهائي.
        content:
          application/json:
            schema:
              type: object
              properties:
                confirm_delete:
                  type: boolean
                  description: >-
                    يُضبط على true لتأكيد حذف التقرير النهائي وملفاته المنشأة
                    نهائياً.
              example:
                confirm_delete: true
            example:
              confirm_delete: true
      responses:
        '204':
          description: تم حذف التقرير، بما في ذلك ملفاته المُنشأة.
        '400':
          description: 'تم إرسال تقرير مكتمل بدون `confirm_delete: true`. لم يُحذف أي شيء.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  confirm_delete:
                    type: array
                    items:
                      type: string
              example:
                confirm_delete:
                  - This field is required to delete a finalized report.
        '403':
          description: لا يمكن لمفتاح API حذف التقارير. يتطلب endpoint إذن `write:cases`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
        '404':
          description: لم يتم العثور على التقرير في هذا التطبيق.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
        '409':
          description: يجري حذف التقرير بالفعل. كرر الطلب لإكمال مسح ملفاته.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
              example:
                detail: >-
                  This report is being deleted. Retry deleting it to finish
                  erasing its files.
                code: report_deletion_pending
        '503':
          description: >-
            تعذر مسح ملفات التقرير في الوقت الحالي. لا يزال التقرير موجوداً. كرر
            الطلب.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
              example:
                detail: >-
                  The report files could not be erased. Please retry deleting
                  the report.
                code: report_storage_unavailable
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl (draft report)
          source: >-
            curl -X DELETE
            'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/regulatory-reports/5ec00000-0000-4000-8000-000000000007/'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: curl
          label: curl (finalized report)
          source: >-
            curl -X DELETE
            'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/regulatory-reports/5ec00000-0000-4000-8000-000000000007/'
            \
              -H 'x-api-key: YOUR_API_KEY' \
              -H 'Content-Type: application/json' \
              -d '{"confirm_delete": true}'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

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

            client.regulatory_reports.delete(
                "5ec00000-0000-4000-8000-000000000007",
                confirm_delete=True,
            )
        - 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.regulatoryReports.delete("5ec00000-0000-4000-8000-000000000007",
            {
              confirm_delete: true,
            });
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;

            import me.didit.types.RegulatoryReportsDeleteParams;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            Didit client = new Didit();


            client.regulatoryReports().delete("5ec00000-0000-4000-8000-000000000007",
            RegulatoryReportsDeleteParams.builder()
                    .confirmDelete(true)
                    .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->regulatoryReports->delete('5ec00000-0000-4000-8000-000000000007',
            [
                'confirm_delete' => true,
            ]);
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

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

            didit.regulatory_reports.delete(
              "5ec00000-0000-4000-8000-000000000007",
              confirm_delete: true
            )
        - 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.RegulatoryReports.DeleteAsync("5ec00000-0000-4000-8000-000000000007",
            new RegulatoryReportsDeleteParams

            {
                ConfirmDelete = true,
            });
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        مفتاح API الخاص بتطبيقك، من Developers -> API keys في Business Console.
        يمتلك المفتاح الأساسي وصولاً كاملاً. يمكن تحديد نطاق المفتاح المسمى: لا
        شيء، أو قراءة، أو كتابة لكل مورد، ومحدوداً ببعض مسارات العمل أو بالجلسات
        المقبولة، وبقائمة من عناوين IP، وبتاريخ انتهاء الصلاحية. يشير 401 إلى أن
        المفتاح غير صحيح أو ملغى أو منتهي الصلاحية؛ ويشير 403 إلى أنه لم يتم
        إرسال أي مفتاح، أو أن المفتاح ليس لديه حق الوصول إلى هذا المورد أو
        الإجراء، أو أن الطلب جاء من عنوان خارج قائمة عناوين IP الخاصة به؛ ويشير
        404 في مسار جلسة إلى أن الجلسة خارج مسارات العمل أو الحالات الخاصة
        بالمفتاح. يتلقى المفتاح الذي لا يمتلك حق الوصول إلى الوسائط عناوين URL
        للصور ومقاطع الفيديو وملفات PDF كـ null، ويتلقى المفتاح الذي لا يمتلك
        إذن كتابة للجلسات روابط الجلسة وtoken كـ null. راجع
        https://docs.didit.me/console/api-keys.

````

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