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

> Удаление готовых правил KYT через API Didit по ключу или целому набору. Переустановить пресеты из библиотеки можно в любое время.



Промпт API для удаления правил библиотеки
        Скопировать промпт в буфер обмена



      
      

\<pre>

\`Remove installed preset rules from my application.

Endpoint:
DELETE https://verification.didit.me/v3/transactions/rules/install/

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

Request body (application/json) - provide at least one selector:
\{ "library_keys": ["structuring-inbound"] }
\{ "bundle": "responsible_gaming" }
\{ "library_keys": ["structuring-inbound"], "bundle": "aml_ctf" }

Response:
\{ "uninstalled_count": 5 }

Behavior:
\- Uninstalled presets stop evaluating immediately and leave the rules list.
\- You may send both selectors. When you do, only the requested library keys that belong to the bundle are removed.
\- Nothing is lost: any preset can be reinstalled from the library at any time via POST /v3/transactions/rules/install/, and past rule runs keep their recorded results.
\- To silence a preset temporarily without removing it, PATCH its mode to DISABLED instead.

Failure modes:
\- 400 - neither library_keys nor bundle provided, or library_keys is not a list.`

\</pre>



      
      

Вставьте в



## OpenAPI

````yaml ru/openapi-25.json DELETE /v3/transactions/rules/install/
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/transactions/rules/install/:
    delete:
      tags:
        - Transactions
      summary: Удалить правила библиотеки
      description: >-
        Удалить установленные пресеты из приложения по `library_keys` или целый
        `bundle`. Удаленные пресеты немедленно прекращают оцениваться и могут
        быть переустановлены из библиотеки в любое время.
      operationId: uninstallTransactionRuleLibrary
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransactionRuleInstallRequest'
            example:
              bundle: responsible_gaming
      responses:
        '200':
          description: Сколько пресетов было удалено.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionRuleInstallResult'
              example:
                uninstalled_count: 5
        '400':
          description: Не указаны ни library_keys, ни bundle.
          content:
            application/json:
              schema:
                type: object
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X DELETE
            'https://verification.didit.me/v3/transactions/rules/install/' \
              -H 'x-api-key: YOUR_API_KEY' \
              -H 'Content-Type: application/json' \
              -d '{"bundle": "responsible_gaming"}'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.transactions.rules.uninstall_library(
                bundle="responsible_gaming",
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

            // Reads DIDIT_API_KEY.
            const didit = new Didit();

            const result = await didit.transactions.rules.uninstallLibrary({
              bundle: "responsible_gaming",
            });
            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.Transactions.Rules.UninstallLibrary(ctx, didit.TransactionRuleInstallRequest{\n\tBundle: didit.String(\"responsible_gaming\"),\n})\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;

            import me.didit.types.TransactionRuleInstallRequest;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.transactions().rules().uninstallLibrary(TransactionRuleInstallRequest.builder()
                    .bundle("responsible_gaming")
                    .build());
            System.out.println(result);
        - lang: php
          label: PHP
          source: |-
            <?php

            require 'vendor/autoload.php';

            use Didit\DiditClient;

            // Reads DIDIT_API_KEY.
            $didit = new DiditClient();

            $result = $didit->transactions->rules->uninstallLibrary([
                'bundle' => 'responsible_gaming',
            ]);
            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY.

            didit = Didit::Client.new


            result = didit.transactions.rules.uninstall_library(bundle:
            "responsible_gaming")

            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            var result = await
            client.Transactions.Rules.UninstallLibraryAsync(new
            TransactionRuleInstallRequest

            {
                Bundle = "responsible_gaming",
            });

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    TransactionRuleInstallRequest:
      type: object
      properties:
        library_keys:
          type: array
          items:
            type: string
          description: Конкретные пресеты для установки или удаления.
        bundle:
          type: string
          description: Вместо этого установить или удалить все пресеты из этого набора.
      description: Укажите library_keys ИЛИ bundle.
    TransactionRuleInstallResult:
      type: object
      properties:
        installed_library_keys:
          type: array
          items:
            type: string
          description: 'Только POST (установка): пресеты, установленные этим вызовом.'
        installed_count:
          type: integer
          description: Только POST (установка).
        uninstalled_count:
          type: integer
          description: 'Только для DELETE (удаление): пресеты, удалённые этим вызовом.'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API-ключ вашего приложения из раздела «Разработчикам» -> «API-ключи» в
        Business Console. Основной ключ имеет полный доступ. Именованный ключ
        может иметь ограниченную область действия: без доступа, чтение или
        запись для каждого ресурса, ограничение определенными сценариями или
        одобренными сессиями, списком IP-адресов и сроком действия. 401
        означает, что ключ неверен, отозван или его срок действия истек; 403
        означает, что ключ не был передан, у ключа нет доступа к этому ресурсу
        или действию, либо запрос поступил с адреса вне его списка IP-адресов;
        404 на маршруте сессии означает, что сессия не входит в сценарии или
        статусы ключа. Ключ без доступа к медиа получает URL изображений, видео
        и PDF как null, а ключ без прав на запись сессий получает ссылки на
        сессии и токены как null. См. https://docs.didit.me/console/api-keys.

````

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