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

# Bulk soft-delete tags

> Soft-delete multiple tags by FQN. Not-found items are non-fatal.



## OpenAPI

````yaml /openapi/em-runtime-utils-v2.yaml post /utils/metadata/tags/delete
openapi: 3.1.0
info:
  title: em_runtime_utils
  version: 5.27.0
servers: []
security: []
paths:
  /utils/metadata/tags/delete:
    post:
      tags:
        - metadata
      summary: Bulk soft-delete tags
      description: Soft-delete multiple tags by FQN. Not-found items are non-fatal.
      operationId: bulk_delete_tags
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkDeleteTagRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDeleteTagResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    BulkDeleteTagRequest:
      properties:
        fqns:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Fqns
          description: List of fully qualified names to delete
      type: object
      required:
        - fqns
      title: BulkDeleteTagRequest
      description: Request body for bulk delete tags by FQN.
    BulkDeleteTagResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/BulkDeleteTagItemResult'
          type: array
          title: Items
        errors:
          items:
            $ref: '#/components/schemas/MetadataItemError'
          type: array
          title: Errors
      type: object
      required:
        - items
        - errors
      title: BulkDeleteTagResponse
      description: Response for bulk delete tags.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorResponse
      description: Standard error response model.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BulkDeleteTagItemResult:
      properties:
        fqn:
          type: string
          title: Fqn
        message:
          type: string
          title: Message
      type: object
      required:
        - fqn
        - message
      title: BulkDeleteTagItemResult
      description: Per-item result in bulk delete response.
    MetadataItemError:
      properties:
        fqn:
          type: string
          title: Fqn
        error_code:
          $ref: '#/components/schemas/MetadataErrorCode'
        detail:
          type: string
          title: Detail
      type: object
      required:
        - fqn
        - error_code
        - detail
      title: MetadataItemError
      description: Per-item error in bulk operation responses.
    ErrorBody:
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          title: Message
        details:
          additionalProperties: true
          type: object
          title: Details
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - code
        - message
        - request_id
        - timestamp
      title: ErrorBody
      description: Error body with structured details.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    MetadataErrorCode:
      type: string
      enum:
        - not_found
        - permission_denied
        - validation_error
      title: MetadataErrorCode
      description: Error codes for per-item errors in bulk operations.
    ErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - INVALID_TOKEN
        - INSUFFICIENT_PERMISSIONS
        - RESOURCE_NOT_FOUND
        - RESOURCE_ALREADY_EXISTS
        - VALIDATION_ERROR
        - RATE_LIMIT_EXCEEDED
        - SERVICE_UNAVAILABLE
        - INTERNAL_ERROR
      title: ErrorCode
      description: Standard error codes for API responses.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````