---
title: "Table Delete"
description: "Delete rows in a workspace table."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/table/delete"
---
# Table Delete

> Delete rows in a workspace table.

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



</block-meta>

**Table Delete** removes rows from a [table](https://docs.vettero.com/data/tables). Target one row by **Row ID**, or match rows with **By Query**. Prefer [Table Archive](https://docs.vettero.com/build/workflows/blocks/table/archive) when you only need to hide rows.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Table
      </strong>
    </td>
    
    <td>
      Workspace table (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Mode
      </strong>
    </td>
    
    <td>
      <strong>
        By Row ID
      </strong>
      
       or <strong>
        By Query
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Row ID
      </strong>
    </td>
    
    <td>
      Shown in By Row ID — the row to delete
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Filters
      </strong>
    </td>
    
    <td>
      Shown in By Query — which rows match
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Delete One
      </strong>
      
       / <strong>
        Delete Many
      </strong>
    </td>
    
    <td>
      Shown in By Query — delete the first match or every match
    </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>
  
  <tr>
    <td>
      <code>
        matchedCount
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Rows that matched the target
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        modifiedCount
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Rows that were deleted
    </td>
  </tr>
</tbody>
</table>

## Use case

- Remove a draft row after the person cancels.
- Clean up test records that match a filter — use **Delete One** until you are sure the filter is correct.

<block-page-nav>



</block-page-nav>


## Sitemap

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