> ## 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>
  \`Delete a CUSTOM transaction-monitoring rule.

  Endpoint:
  DELETE [https://verification.didit.me/v3/transactions/rules/\{rule\_uuid}/](https://verification.didit.me/v3/transactions/rules/\{rule_uuid}/)

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

  Behavior:

  * 204 on success. Deletion is immediate and permanent: the rule stops evaluating for new transactions and disappears from listings. Rule runs already recorded on past transactions keep their results.
  * Only CUSTOM rules can be deleted. A library preset returns 400 - uninstall it via DELETE /v3/transactions/rules/install/ instead (presets can always be reinstalled from the library).
  * The freed title can be reused by a new rule.

  Failure modes:

  * 400 - the rule is a library preset.
  * 404 - unknown rule uuid for this application.\`
</pre>

الصق في


## OpenAPI

````yaml ar/openapi-25.json DELETE /v3/transactions/rules/{rule_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/transactions/rules/{rule_uuid}/:
    parameters:
      - name: rule_uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: المعرّف الفريد العالمي (uuid) للقاعدة من القائمة أو الإنشاء.
    delete:
      tags:
        - Transactions
      summary: حذف القاعدة
      description: >-
        حذف قاعدة CUSTOM. الحذف فوري ونهائي: يتوقف تقييم القاعدة للمعاملات
        الجديدة وتختفي من القوائم، بينما تحتفظ عمليات تشغيل القواعد السابقة على
        المعاملات التي تم تقييمها بالفعل بنتائجها المسجلة. لا يمكن حذف قواعد
        المكتبة - قم بإلغاء تثبيتها عبر endpoint التثبيت بدلاً من ذلك (يمكن
        دائمًا إعادة تثبيتها من المكتبة).
      operationId: deleteTransactionRule
      responses:
        '204':
          description: تم الحذف.
        '400':
          description: القاعدة هي إعداد مسبق من المكتبة - قم بإلغاء التثبيت بدلاً من ذلك.
          content:
            application/json:
              schema:
                type: object
              example:
                detail: >-
                  Library rules cannot be deleted. Uninstall them via the rules
                  install endpoint instead.
        '404':
          description: لا توجد قاعدة كهذه في هذا التطبيق.
          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/RULE_UUID/' \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            client.transactions.rules.delete(
                "11111111-2222-3333-4444-555555555555",
            )
        - lang: javascript
          label: Node.js
          source: >-
            import Didit from "@didit-protocol/sdk-node";


            // Reads DIDIT_API_KEY.

            const didit = new Didit();


            await
            didit.transactions.rules.delete("11111111-2222-3333-4444-555555555555");
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nif err := client.Transactions.Rules.Delete(ctx, \"11111111-2222-3333-4444-555555555555\"); err != nil {\n\tlog.Fatal(err)\n}"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            client.transactions().rules().delete("11111111-2222-3333-4444-555555555555");
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY.

            $didit = new DiditClient();


            $didit->transactions->rules->delete('11111111-2222-3333-4444-555555555555');
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY.

            didit = Didit::Client.new


            didit.transactions.rules.delete("11111111-2222-3333-4444-555555555555")
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            await
            client.Transactions.Rules.DeleteAsync("11111111-2222-3333-4444-555555555555");
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.