> ## 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。这些文件的每个已存储版本都会被清除。报告会从报告列表中消失，此前签发的下载 URL 将停止生效。案件、交易、个人和公司**不会**被删除。报告不会带走它们的数据。删除是永久性的，无法撤销。## 确认草稿或已验证的报告无需请求正文即可删除。删除已定稿的报告需要明确确认：```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/zh/management-api/regulatory-reports/list.md)
- [定稿报告](https://docs.didit.me/zh/management-api/regulatory-reports/finalize.md)
- [删除案件](https://docs.didit.me/zh/management-api/cases/delete.md)
- [批量删除交易](https://docs.didit.me/zh/management-api/transactions/delete.md)


## OpenAPI

````yaml zh/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
        都将被清除，包括这些文件的所有存储版本。该报告将从列表中消失，且下载 URL
        将失效。其他记录（包括案件、交易、人员和企业）不会被删除。此操作无法撤销。


        删除草稿或已验证状态的报告无需请求体。删除已定稿的报告需要在请求体中提供 `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 密钥，可在 Business Console 的“开发者 -> API
        密钥”中获取。主密钥拥有完整访问权限。指定名称的密钥可设置作用域：针对每个资源设为无权限、只读或读写，限定于特定工作流或已通过的会话、限定于
        IP 地址列表，以及设置到期日期。401 表示密钥错误、已撤销或已过期；403 表示未发送密钥、密钥无权访问该资源或操作，或请求来自其 IP
        列表之外的地址；在会话路由上返回 404 表示该会话不在该密钥允许的工作流或状态范围内。没有媒体访问权限的密钥获取到的图片、视频和 PDF
        URL 将为 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.