---
title: "on attachment removed"
canonical: "https://support.appfire.com/space/CDMC/3972300880/on+attachment+removed"
format: markdown
---
## Overview

The `on-attachment-removed` trigger event runs when an attachment is deleted or moved to the trash. Use this event to automate workflow actions when an attachment is removed from a page.

You can add the **File Name** condition to restrict the trigger to specific attachments.

## Example: `on-attachment-removed` event

In this example, a workflow trigger adds the `missing-attachment` label to a page when an attachment named `review.pdf` is deleted or moved to the trash.

```json
"triggers": [
    {
      "event": "on-attachment-removed",
      "conditions": [
        {
          "file-name": {
            "operator": "equals",
            "value": [
              "review.pdf"
            ]
          }
        }
      ],
      "actions": [
        {
          "action": "add-labels",
          "labels": [
            "missing-attachment"
          ],
          "children": false
        }
      ]
    }
  ]
```

The **File Name** condition restricts the trigger to `review.pdf`. When the condition is met, the **Add Labels** action adds the `missing-attachment` label to the current page, indicating that a required attachment has been removed.