---
title: "Delete Datasource"
description: "Remove a datasource and its vectors from a knowledge base."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/kb/delete-datasource"
---
# Delete Datasource

> Remove a datasource and its vectors from a knowledge base.

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



</block-meta>

**Delete Datasource** (canvas label **KB Delete Datasource**) removes a datasource from a [knowledge base](https://docs.vettero.com/data/knowledge-bases) and **deletes its vectors**. Other datasources stay in place.

To remove vectors without dropping the datasource record, use [Delete](https://docs.vettero.com/build/workflows/blocks/kb/delete).

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Knowledge base
      </strong>
    </td>
    
    <td>
      Store that owns the datasource (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Datasource ID
      </strong>
    </td>
    
    <td>
      Datasource to remove (required)
    </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 datasource is removed
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block continues after the delete. The data pipe value is an empty object.

## Use case

- Drop a withdrawn document so it can no longer appear in search.
- Clean up a failed ingest after checking `error` on [Get Datasource](https://docs.vettero.com/build/workflows/blocks/kb/get-datasource).

<block-page-nav>



</block-page-nav>


## Sitemap

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