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

# Remove a tag from a file

> Remove a specific tag from a file.

**Behavior:**
- Removes the specified tag from the document
- Works for both manually assigned and auto-assigned tags
- Idempotent: returns 204 even if tag was not on the document

**Validation:**
- Returns 403 if user doesn't have permission to edit the document
- Returns 404 if document doesn't exist
- Returns 404 if tag doesn't exist or doesn't belong to user's company




## OpenAPI

````yaml /api-reference/openapi-v3.yaml delete /api/v3/files/{id}/tags/{tag_id}
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Files Processing
    description: Operations about files processing
  - name: Tags
    description: Operations about tags
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: User Groups
    description: Operations about user groups
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/files/{id}/tags/{tag_id}:
    delete:
      tags:
        - Tags
      summary: Remove a tag from a file
      description: |
        Remove a specific tag from a file.

        **Behavior:**
        - Removes the specified tag from the document
        - Works for both manually assigned and auto-assigned tags
        - Idempotent: returns 204 even if tag was not on the document

        **Validation:**
        - Returns 403 if user doesn't have permission to edit the document
        - Returns 404 if document doesn't exist
        - Returns 404 if tag doesn't exist or doesn't belong to user's company
      operationId: api_v3_files_tags_destroy
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - in: path
          name: tag_id
          schema:
            type: integer
          required: true
      responses:
        '204':
          description: Tag removed successfully (or was already not on the file)
        '401':
          description: Authentication credentials were not provided
        '403':
          description: Permission denied - user cannot edit this file
        '404':
          description: File or tag not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````