> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidnavigator.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Namespace

> Delete a namespace and remove its association from all files. The 'default' namespace cannot be deleted.

Delete a namespace. The `default` namespace cannot be deleted. Files previously assigned to this namespace will have the association removed but are **not** deleted.

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.vidnavigator.com/v1/namespaces/64a1b2c3d4e5f6789abc0003" \
    -H "X-API-Key: YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  namespace_id = "64a1b2c3d4e5f6789abc0003"
  url = f"https://api.vidnavigator.com/v1/namespaces/{namespace_id}"
  headers = {"X-API-Key": "YOUR_API_KEY"}

  response = requests.delete(url, headers=headers)
  result = response.json()
  ```

  ```javascript JavaScript theme={null}
  const namespaceId = '64a1b2c3d4e5f6789abc0003';
  const response = await fetch(`https://api.vidnavigator.com/v1/namespaces/${namespaceId}`, {
    method: 'DELETE',
    headers: { 'X-API-Key': 'YOUR_API_KEY' }
  });

  const result = await response.json();
  ```
</CodeGroup>

## Success Response

```json theme={null}
{
  "status": "success",
  "message": "Namespace deleted successfully"
}
```


## OpenAPI

````yaml DELETE /namespaces/{namespace_id}
openapi: 3.0.3
info:
  title: VidNavigator Developer API
  description: >-
    The VidNavigator Developer API provides programmatic access to video
    analysis, transcription, and search capabilities.


    ## Authentication

    All endpoints require API key authentication via the `X-API-Key` header:

    ```

    X-API-Key: YOUR_API_KEY

    ```


    ## Rate Limits

    Check the documentation for the rate limits for each endpoint.


    ## Error Handling

    The API uses standard HTTP status codes and returns error responses in JSON
    format:

    ```json

    {
      "status": "error",
      "error": "error_type",
      "message": "Human readable error message"
    }

    ```
  version: 1.0.0
  contact:
    name: VidNavigator Support
    url: https://vidnavigator.com/support
    email: support@vidnavigator.com
  license:
    name: Proprietary
    url: https://vidnavigator.com/terms
servers:
  - url: https://api.vidnavigator.com/v1
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Transcripts
    description: Extract transcripts from online videos
  - name: TikTok
    description: Scrape TikTok profile metadata and per-video stats
  - name: Files
    description: Manage uploaded audio/video files
  - name: Analysis
    description: AI-powered content analysis
  - name: Extraction
    description: >-
      Extract structured data from video and file transcripts using custom
      schemas
  - name: Namespaces
    description: Organize uploaded files into namespaces (folders)
  - name: Search
    description: Search videos and files using AI
  - name: System
    description: System health and information
  - name: Tweet Analysis
    description: Extract structured claims and metadata from X/Twitter tweets
paths:
  /namespaces/{namespace_id}:
    delete:
      tags:
        - Namespaces
      summary: Delete a namespace
      description: >-
        Delete a namespace and remove its association from all files. The
        'default' namespace cannot be deleted.
      operationId: deleteNamespace
      parameters:
        - name: namespace_id
          in: path
          required: true
          description: The ID of the namespace to delete
          schema:
            type: string
      responses:
        '200':
          description: Namespace deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          description: Namespace not found or could not be deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  responses:
    BadRequest:
      description: Bad request - invalid parameters
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
              message:
                type: string
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - internal_server_error
              message:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key authentication. Include your VidNavigator API key in the
        X-API-Key header.

````