---
title: "Row deleted"
description: "Run when a row is deleted from a selected table."
canonical_url: "https://docs.vettero.com/build/event-handlers/row-deleted"
---
# Row deleted

> Run when a row is deleted from a selected table.

<trigger-meta group="Table" icon="i-lucide-trash-2" type="table.on-delete">



</trigger-meta>

**Row deleted** runs when a row is deleted from the selected [table](https://docs.vettero.com/data/tables).

## Payload

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

<tbody>
  <tr>
    <td>
      <code>
        tableId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Table to watch
    </td>
  </tr>
</tbody>
</table>

## Trigger data

Available as `args.*`. `row` matches the selected table.

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

<tbody>
  <tr>
    <td>
      <code>
        tableId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Table id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        rowId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Deleted row id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        row
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Row values at delete
    </td>
  </tr>
</tbody>
</table>

## Use case

- Revoke access, cancel a subscription, or notify stakeholders when a record is removed from the grid.
- Clean related rows, files, or external ids using the deleted row’s values.
- Audit or log who lost a record — the handler still receives the row as it was at delete.
- Use [Row archived](https://docs.vettero.com/build/event-handlers/row-archived) when the row is only archived, not deleted.

<trigger-page-nav>



</trigger-page-nav>


## Sitemap

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