> ## 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 Management APIで、下書きまたは確定済みの規制当局向けレポートを削除します。コピーされたナラティブ、取引の紐付け、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`が返され、何も削除されません。## ファイルをすぐに消去できない場合`code: report_storage_unavailable`を含む`503`は、レポートファイルを現時点で消去できなかったことを意味します。レポートはそのまま残っているため、リクエストを再度送信してください。`code: report_deletion_pending`を含む`409`は、このレポートの削除がすでに進行中であることを意味します。削除を完了するには、リクエストを再度送信してください。## ブロックされた削除の解決個人、企業、取引、ケース、またはセッションの削除で`code: in_filed_report`を含む`409`が返された場合、レスポンスにはそのデータを保持しているレポートが示されます。ここで各レポートを削除してから、ブロックされた削除を再度実行してください。## 関連項目- [レポート一覧の取得](https://docs.didit.me/ja/management-api/regulatory-reports/list.md)
- [レポートの確定](https://docs.didit.me/ja/management-api/regulatory-reports/finalize.md)
- [ケースの削除](https://docs.didit.me/ja/management-api/cases/delete.md)
- [取引の一括削除](https://docs.didit.me/ja/management-api/transactions/delete.md)


## OpenAPI

````yaml ja/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キーではレポートを削除できません。このエンドポイントには`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のDevelopers -> API
        keysで取得できます。プライマリキーはフルアクセス権を持ちます。名前付きキーにはスコープを設定できます。リソースごとのアクセス権（なし、読み取り、書き込み）、一部のワークフローまたは承認済みセッションへの限定、IPアドレスのリストへの限定、有効期限の設定です。401は、キーが誤っている、失効している、または期限切れであることを意味します。403は、キーが送信されていない、キーにこのリソースやアクションへのアクセス権がない、またはIPリスト外のアドレスからリクエストが送信されたことを意味します。セッションのルートでの404は、セッションがキーのワークフローまたはステータスの対象外であることを意味します。メディアへのアクセス権がないキーでは、画像、動画、PDFのURLがnullで返されます。セッションの書き込み権限がないキーでは、セッションのリンクとトークンがnullで返されます。詳細は次を参照してください:
        https://docs.didit.me/console/api-keys

````

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