---
title: "Delete"
description: "Delete vectors from a knowledge base by id, ids, or metadata."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/kb/delete"
---
# Delete

> Delete vectors from a knowledge base by id, ids, or metadata.

<block-meta block="Yes" channels="Any" folder="kb" group="Knowledge Base" groupTo="/build/workflows/blocks/kb" icon="i-lucide-trash" pipe="Value" scope="Any" tool="Yes" type="kb.delete">



</block-meta>

**Delete** (canvas label **KB Delete**) removes vectors from a [knowledge base](https://docs.vettero.com/data/knowledge-bases). It does not remove the datasource record — use [Delete Datasource](https://docs.vettero.com/build/workflows/blocks/kb/delete-datasource) when you want the source and its vectors gone together.

**By metadata** requires a filter. An empty filter is not allowed.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Knowledge base
      </strong>
    </td>
    
    <td>
      Store to update (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Delete mode
      </strong>
    </td>
    
    <td>
      <strong>
        By ID
      </strong>
      
      , <strong>
        By IDs
      </strong>
      
      , or <strong>
        By metadata
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Vector ID
      </strong>
    </td>
    
    <td>
      Shown in By ID — one vector id
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Vector IDs (comma-separated)
      </strong>
    </td>
    
    <td>
      Shown in By IDs — several ids
    </td>
  </tr>
  
  <tr>
    <td>
      Metadata filter
    </td>
    
    <td>
      Shown in By metadata — which vectors to remove
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the delete
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is an object:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        success
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the delete ran
    </td>
  </tr>
</tbody>
</table>

## Use case

- Drop a single outdated FAQ by id.
- Clear all vectors tagged with a retired product using a metadata filter.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
