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

# Delete payload keys

> Remove specific payload fields from the specified points. Only explicitly listed point IDs are supported; filter-based targeting is not available for this operation. If a key does not exist on a given point, it is silently ignored.



## OpenAPI

````yaml post /collections/{collection_name}/points/payload/delete
openapi: 3.0.3
info:
  title: Actian VectorAI DB - Points API
  description: Point CRUD operations for VectorAI DB.
  version: 1.0.0
  contact:
    name: Actian Corporation
    url: https://www.actian.com
servers:
  - url: http://localhost:6573
    description: Local development server (REST API)
  - url: https://api.vectorai.actian.com
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Points
    description: Point data operations
paths:
  /collections/{collection_name}/points/payload/delete:
    post:
      tags:
        - Points
      summary: Delete payload keys
      description: >-
        Remove specific payload fields from the specified points. Only
        explicitly listed point IDs are supported; filter-based targeting is not
        available for this operation. If a key does not exist on a given point,
        it is silently ignored.
      operationId: delete_payload
      parameters:
        - name: collection_name
          in: path
          required: true
          schema:
            type: string
            example: my_collection
          description: The name of the collection containing the target points.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - keys
                - points
              properties:
                keys:
                  type: array
                  items:
                    type: string
                  example:
                    - tags
                    - old_field
                  description: List of payload field names to remove.
                points:
                  type: array
                  items:
                    oneOf:
                      - type: integer
                      - type: string
                  example:
                    - 1
                    - 2
                  description: List of point IDs to remove keys from.
            examples:
              delete_keys:
                summary: Delete specific keys
                value:
                  keys:
                    - tags
                  points:
                    - 1
                    - 2
      responses:
        '200':
          description: Payload keys deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  usage:
                    type: object
                    description: Resource usage information for this request.
                    properties:
                      hardware:
                        type: object
                        nullable: true
                        description: >-
                          Hardware resource counters for the operation,
                          including CPU, payload I/O, payload index I/O, and
                          vector I/O metrics.
                  time:
                    type: number
                    format: double
                    example: 0.009149702
                    description: Time spent to process this request, in seconds.
                  status:
                    type: string
                    example: ok
                    description: Operation status. Returns `ok` on success.
                  result:
                    type: object
                    description: >-
                      Operation result containing the status of the payload key
                      deletion.
                    properties:
                      operation_id:
                        type: integer
                        example: 0
                        description: Unique identifier for the operation.
                      status:
                        type: string
                        example: Completed
                        description: >-
                          Status of the operation. Returns `Completed` when the
                          operation finishes successfully.
              example:
                usage:
                  hardware: null
                time: 0.009149702
                status: ok
                result:
                  operation_id: 0
                  status: Completed
        4XX:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: Python
          label: Delete payload keys
          source: |
            from actian_vectorai_client import VectorAIClient

            with VectorAIClient("localhost:6574") as client:
                # Delete specific payload fields
                client.points.delete_payload(
                    "my_collection",
                    keys=["tags"],
                    ids=[1, 2]
                )
                print("✓ Deleted 'tags' field from points 1, 2")
        - lang: JavaScript
          label: Delete payload keys
          source: >
            import { VectorAIClient } from '@actian/vectorai-client';


            const client = new VectorAIClient('localhost:6574');


            await client.points.deletePayload('my_collection', ['tags'], { ids:
            [1, 2] });

            console.log('Deleted "tags" key from points 1, 2');


            client.close();
        - lang: cURL
          label: Delete payload keys
          source: >
            curl -X POST
            "http://localhost:6573/collections/my_collection/points/payload/delete"
            \
              -H "Content-Type: application/json" \
              -H 'Authorization: Bearer <admin-jwt-or-access-token>' \
              -d '{
                "keys": ["tags"],
                "points": [1, 2]
              }'
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error response returned when a request fails.
      properties:
        status:
          type: object
          description: Status object containing the error message.
          properties:
            error:
              type: string
              description: Human-readable error message describing what went wrong.
              example: Collection `my_collection` doesn't exist!
        time:
          type: number
          format: double
          description: Time spent to process this request, in seconds.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Admin JWT or access token for authenticating requests to VectorAI DB.

````

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