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

> Archive rows in a workspace table.

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



</block-meta>

**Table Archive** soft-removes rows from a [table](https://docs.vettero.com/data/tables) without deleting them. Targeting matches [Table Delete](https://docs.vettero.com/build/workflows/blocks/table/delete): **By Row ID**, or **By Query** with **Archive One** / **Archive Many**.

Use delete when the row should be removed. Use archive when you still want the record available later.

## 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 archive
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Filters
      </strong>
    </td>
    
    <td>
      Shown in By Query — which rows match
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Archive One
      </strong>
      
       / <strong>
        Archive Many
      </strong>
    </td>
    
    <td>
      Shown in By Query — archive 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 archive
    </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 archive 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 archived
    </td>
  </tr>
</tbody>
</table>

## Use case

- Hide a completed ticket from the live grid while keeping history.
- Archive stale leads after a cutoff date using a query filter.

<block-page-nav>



</block-page-nav>


## Sitemap

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