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

# Delete Record Tag

> Remove a tag from a Record by its text.



## OpenAPI

````yaml delete /records/{recordId}/tags/{text}
openapi: 3.1.0
info:
  title: Scorecard API
  description: REST API for Scorecard
  version: 1.0.0
servers:
  - url: https://api2.scorecard.io/api/v2
security:
  - ApiKeyAuth: []
paths:
  /records/{recordId}/tags/{text}:
    delete:
      summary: Delete Record Tag
      description: Remove a tag from a Record by its text.
      operationId: deleteRecordTag
      parameters:
        - in: path
          name: recordId
          description: The ID of the Record to remove the tag from.
          schema:
            type: string
            example: '777'
          required: true
        - in: path
          name: text
          description: The tag text to remove.
          schema:
            type: string
            example: urgent
          required: true
      responses:
        '200':
          description: The tag was removed (or was not present).
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: number
                    description: >-
                      The number of tag rows removed (0 if the tag was not
                      present).
                required:
                  - deleted
              examples:
                Deleted tag:
                  value:
                    deleted: 1
                  summary: Deleted tag
                  description: Response indicating how many tag rows were removed.
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '500':
          $ref: '#/components/responses/ServiceError'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Scorecard from 'scorecard-ai';


            const client = new Scorecard({
              apiKey: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted
            });


            const tag = await client.records.tags.delete('urgent', { recordId:
            '777' });


            console.log(tag.deleted);
        - lang: Python
          source: |-
            import os
            from scorecard_ai import Scorecard

            client = Scorecard(
                api_key=os.environ.get("SCORECARD_API_KEY"),  # This is the default and can be omitted
            )
            tag = client.records.tags.delete(
                text="urgent",
                record_id="777",
            )
            print(tag.deleted)
        - lang: cURL
          source: >-
            curl https://api2.scorecard.io/api/v2/records/$RECORD_ID/tags/$TEXT
            \
                -X DELETE \
                -H "Authorization: Bearer $SCORECARD_API_KEY"
components:
  responses:
    UnauthenticatedError:
      description: Error indicating that the request is not authenticated.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Authentication failure:
              value:
                code: UNAUTHORIZED
                message: Invalid or missing authentication token
                details: {}
              summary: Authentication failure
              description: >-
                Error returned when authentication credentials are invalid or
                missing.
    ServiceError:
      description: >-
        An internal service error indicating an issue with the Scorecard
        service.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Internal error:
              value:
                code: INTERNAL_ERROR
                message: An unexpected error occurred while processing your request.
                details: {}
              summary: Internal error
              description: Generic error when an unexpected internal issue occurs.
  schemas:
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
          x-stainless-any: true
      required:
        - code
        - message
        - details
      description: An API error.
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: starts with ak_

````