> ## 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: अनुपालन सूची हटाएँ

> Didit एप्लिकेशन से अलाउलिस्ट या कस्टम सूची और उसकी प्रविष्टियाँ हटाने के लिए DELETE /v3/lists/{list_uuid}/ कॉल करें। सिस्टम सूचियाँ नहीं हटाई जा सकतीं।



सूची हटाने का API प्रॉम्प्ट
        प्रॉम्प्ट को क्लिपबोर्ड पर कॉपी करें



      
      

\<pre>

\`Delete an allowlist or custom list from my Didit application through the Management API.

Endpoint:
DELETE https://verification.didit.me/v3/lists/{list_uuid}/

Authentication:
Use the x-api-key header with my Didit API key. A scoped API key needs workflows: write.

Goal:
\- Delete an allowlist or custom list that I no longer need, together with its entries.
\- System lists (is_system: true) cannot be deleted; the API answers 400.

Path parameter:
\- list_uuid: the list UUID returned by GET /v3/lists/ or POST /v3/lists/.

Important semantics:
\- Returns 204 No Content with an empty body on success.
\- The list no longer appears in any read and its entries can no longer be listed.
\- Workflow and transaction rule conditions that reference the list (value_type: "list") evaluate it as an empty list from then on. Audit them before deleting.
\- Deletion is irreversible. The name can be reused for a new list.
\- Calling DELETE again on the same list_uuid returns 404.

Example call:
curl -X DELETE "https://verification.didit.me/v3/lists/{list_uuid}/" \
-H "x-api-key: YOUR_API_KEY"

Failure modes:
\- 400: the list is a system list ({ "detail": "System lists cannot be deleted." }).
\- 401: the API key has expired.
\- 403: missing x-api-key (a wrong, revoked or expired key gets 401) ({ "detail": "You do not have permission to perform this action." }), or a scoped key without workflows: write.
\- 404: no list with this UUID in this application, or it was already deleted.
\- 429: rate limited (see /integration/rate-limiting); back off and retry.

Side effects:
\- The list and its entries are deleted.

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

\</pre>



      
      

यहाँ पेस्ट करें

अनुमति सूची या कस्टम सूची को उसकी सभी प्रविष्टियों के साथ हटाएँ। सूची किसी भी पढ़ने के अनुरोध में दिखाई नहीं देगी, और जो वर्कफ़्लो और लेन-देन नियमों की शर्तें इसका संदर्भ देती हैं, वे इसका मूल्यांकन खाली सूची के रूप में करेंगी। हटाने की प्रक्रिया अपरिवर्तनीय है।सिस्टम सूचियाँ (ब्लॉकलिस्ट, **High Risk Countries** सूची और सिस्टम अनुमति सूचियाँ) नहीं हटाई जा सकतीं और `400` लौटाती हैं। किसी सिस्टम सूची को खाली करने के लिए, उसकी प्रविष्टियों को [एक-एक करके हटाएँ](https://docs.didit.me/hi/management-api/lists/delete-entry.md)।


## OpenAPI

````yaml hi/openapi-25.json DELETE /v3/lists/{list_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/lists/{list_uuid}/:
    delete:
      tags:
        - Lists
      summary: एक सूची हटाएं
      description: >-
        अनुमति सूची या कस्टम सूची को उसकी प्रविष्टियों के साथ हटाता है। हटाना
        अपरिवर्तनीय है: सूची और उसकी प्रविष्टियां अब किसी भी रीड में दिखाई नहीं
        देती हैं, और वर्कफ़्लो और लेन-देन नियम शर्तें जो सूची को संदर्भित करती
        हैं, वे तब से इसे एक खाली सूची के रूप में मूल्यांकित करती हैं। पहले से
        मूल्यांकित सत्र और लेन-देन अपने परिणाम बनाए रखते हैं, और नाम का पुनः
        उपयोग नई सूची के लिए किया जा सकता है। सिस्टम सूचियों को हटाया नहीं जा
        सकता और वे `400` लौटाती हैं; किसी सूची को खाली करने के लिए, [उसकी
        प्रविष्टियां
        हटाएं](https://docs.didit.me/hi/management-api/lists/delete-entry)। एक
        स्कोप्ड API कुंजी को `workflows: write` की आवश्यकता होती है।
      operationId: delete_list
      parameters:
        - name: list_uuid
          in: path
          required: true
          description: >-
            सूची का UUID, जैसा कि List lists या Create a list द्वारा लौटाया गया
            है।
          schema:
            type: string
            format: uuid
          example: 11111111-2222-3333-4444-555555555555
      responses:
        '204':
          description: सूची और इसकी प्रविष्टियाँ हटा दी गईं। कोई बॉडी नहीं।
        '400':
          description: सूची एक सिस्टम सूची है।
          content:
            application/json:
              examples:
                System list:
                  value:
                    detail: System lists cannot be deleted.
        '401':
          description: >-
            स्कोप्ड API कुंजी की समय-सीमा समाप्त हो गई है। अन्य प्रमाणीकरण
            विफलताओं पर `403` मिलता है।
          content:
            application/json:
              examples:
                Expired API key:
                  value:
                    detail: This API key has expired.
        '403':
          description: >-
            `x-api-key` हेडर अनुपस्थित है (गलत, निरस्त या समय-सीमा समाप्त कुंजी
            को `401` मिलता है), या किसी स्कोप्ड API कुंजी में `workflows: write`
            की कमी है या इसका उपयोग इसकी अनुमति सूची से बाहर के किसी IP पते से
            किया गया है।
          content:
            application/json:
              examples:
                Missing or invalid API key:
                  value:
                    detail: You do not have permission to perform this action.
                Scoped key without workflows access:
                  value:
                    detail: This API key has no write access to workflows.
        '404':
          description: >-
            API कुंजी के एप्लिकेशन में इस UUID वाली कोई सूची मौजूद नहीं है, या
            इसे पहले ही हटा दिया गया था।
          content:
            application/json:
              examples:
                Not found:
                  value:
                    detail: No List matches the given query.
        '429':
          $ref: '#/components/responses/RateLimitedWrite'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X DELETE
            'https://verification.didit.me/v3/lists/11111111-2222-3333-4444-555555555555/'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            client.lists.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.lists.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.Lists.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.lists().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->lists->delete('11111111-2222-3333-4444-555555555555');
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY.
            didit = Didit::Client.new

            didit.lists.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.Lists.DeleteAsync("11111111-2222-3333-4444-555555555555");
components:
  responses:
    RateLimitedWrite:
      description: >-
        प्रति API कुंजी प्रति मिनट 300 अनुरोधों की साझा लिखने की सीमा पार हो गई।
        पुनः प्रयास करने से पहले `Retry-After` का पालन करें।
      content:
        application/json:
          schema:
            type: object
            required:
              - detail
            properties:
              detail:
                type: string
          example:
            detail: >-
              Write request rate limit exceeded. You can make up to 300 requests
              per minute.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        आपकी एप्लिकेशन की API कुंजी, Business Console में Developers -> API keys
        से। प्राथमिक कुंजी के पास पूर्ण एक्सेस होता है। एक नामित कुंजी को स्कोप
        किया जा सकता है: प्रति संसाधन none, read या write, कुछ वर्कफ़्लो या
        स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और समाप्ति तिथि तक
        सीमित। 401 का अर्थ है कि कुंजी गलत है, निरस्त कर दी गई है या उसकी
        समय-सीमा समाप्त हो गई है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई थी,
        कुंजी के पास इस संसाधन या कार्रवाई का एक्सेस नहीं है, या अनुरोध उसकी IP
        सूची से बाहर के पते से आया था; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी
        के वर्कफ़्लो या स्थितियों से बाहर है। मीडिया एक्सेस के बिना एक कुंजी को
        छवि, वीडियो और PDF URL null के रूप में प्राप्त होते हैं, और सत्र write
        के बिना एक कुंजी को सत्र लिंक और token null के रूप में प्राप्त होते हैं।
        देखें https://docs.didit.me/console/api-keys।

````

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