All Products
Search
Document Center

DashVector:Delete a vector

Last Updated:Mar 17, 2025

This topic describes how to delete a vector by using the DashVector console, SDKs, or the HTTP API.

Use the DashVector console to delete a vector

  1. Log on to the DashVector console.

  2. In the left-side navigation pane, click Clusters. On the Clusters page, find the collection that you want to manage and click Details in the Operation column.image.png

  3. In the left-side bar, click Vector Delete. Then, configure parameters and click OK.image.png

    The following table describes the parameters.

    Parameter

    Parameter name in API

    Description

    Required

    Primary Key ID

    ids

    The primary key ID of the vector to be deleted.

    Note
    • To delete multiple vectors at a time, separate multiple primary key IDs with commas (,). The vectors to be deleted at a time must belong to the same partition.

    • If the primary key ID that you enter does not exist in the specified partition, the operation for deleting the corresponding vector is invalid.

    • In batch deletion, vectors whose primary key IDs exist are deleted, and those whose primary key IDs do not exist are filtered out and not deleted.

    Yes

    Partition

    partition

    The partition name. Default value: default.

    Yes

    The following table describes the parameters in the returned results.

    Parameter

    Type

    Description

    Example

    Code

    int

    The returned status code. For more information, see Status codes.

    0

    Message

    str

    The error message returned if the request failed.

    "5 does not exist."

    RequestId

    str

    The request ID.

    7730ABE1-DF1D-1F42-AAA1-607416AEED01

    Success

    str

    Indicates whether the request was successful.

    true

Use SDKs to delete a vector

For more information about how to delete a vector by using the SDK for Python, see Delete documents.

For more information about how to delete a vector by using the SDK for Java, see Delete documents.

Use the HTTP API to delete a vector

For more information, see Delete documents.