---
title: "Delete File"
description: "Soft-delete a workspace file by id."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/file/delete"
---
# Delete File

> Soft-delete a workspace file by id.

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



</block-meta>

**Delete File** soft-deletes a [workspace file](https://docs.vettero.com/data/files) by id. Later [Get File](https://docs.vettero.com/build/workflows/blocks/file/get) steps treat it as missing.

This is not the same as [File](https://docs.vettero.com/build/workflows/blocks/out/file) output, which **sends** a file in chat.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        File id
      </strong>
    </td>
    
    <td>
      Workspace file id (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 file is deleted
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

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

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

<tbody>
  <tr>
    <td>
      <code>
        deleted
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      <code>
        true
      </code>
      
       when the file was deleted
    </td>
  </tr>
</tbody>
</table>

## Use case

- Clean up a temporary export after you send it.
- Remove a file after a failed ingest, then create a replacement with [Create File from URL](https://docs.vettero.com/build/workflows/blocks/file/create-from-url).

<block-page-nav>



</block-page-nav>


## Sitemap

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