--- alias: user-guide-automation-task-filedrivers-filedeletedevent tags: - automation tasks description: "This task listens for file deletion events, emitting relevant data upon triggering" --- # File Deleted Event ![Screenshot showing a file deletion event in a system log.](images/eventfiledeleted-lg.svg) This task, when initialized, subscribes to the `file deleted event`. The task outputs will be filled with the data received from the file driver. ![Screenshot showing a file deletion event with details including "eventRawData" and a filename hint of "image35".](./images/image35.png) ## Inputs | Name | DataType | Description | |----------|----------|-----------------------------| | Activate | `any` | Enables the event listening | !!! note Although the drawn Task box indicates the `Activate` input is of type `any` it will act based on the converted value to `Boolean`. The visual information will be fixed in a future version. ## Outputs | Name | DataType | Description | | ------ | --------- | --------- | | eventRawData | `any` | Triggered when an event occurs. Used to output the received data | | timestamp | `DateTime` | Triggered when an event occurs. Used to output the time of occurrence | | fileName | `String` | Triggered when an event occurs. Used to output the name of the deleted file | | relativePath | `String` | Triggered when an event occurs. Used to output the relative path of the deleted file | | fullPath | `String` | Triggered when an event occurs. Used to output the path of the deleted file | | Success | `Boolean` | Triggered when the task is executed with success | | Error | `Error` | Triggered when the task failed for some reason | ## Settings On the `General` tab, you have the usual settings and the following settings: | Name | DataType | Values | Default | Description | | ------ | --------- | --------- | --------- | --------- | | Auto Activate | `Boolean` | | True | If the event is automatically activated or if it is only activated by the `activate` input | ![Screenshot showing settings for file deleted event.](./images/image36.png) ## Behavior In this task you choose a driver when dropping it into the workflow (if you have more than one driver associated with the controller). The task will become available (listening to the event(s)) on one of the following conditions: - `Auto Activate` setting is set to `true` - `Activate` input is fed with a `true` Boolean value (or compatible, like `1`, `true`, `t`, `yes`, `y`) Upon activation, when the `file deleted event` occurs every property associated with it will have its value emitted. ## Remarks {% include-markdown 'includes/pages/automation_zones_note.md' %}