# Deleting files from a comment
# Symptoms

How to delete a file from a comment in a ticket and from the server?

# Solution

In Swarmica, there are 2 types of file deletion: soft and full. 

With <u>soft</u> deletion, the file is removed, but there is a mark that the file was. 
With <u>full</u> deletion, there is no record of the deleted file in the comment.

:::caution
To make the Attachment Deletion functionality work, you need to enable the ```__delete_comment_attachments``` feature flag. [More details](https://support.swarmica.com/article/ru/596-ficha-flagi-features-vozmozhnost-vklyuchat-i-vyklyuchat-bloki-funkcij-v-swarmica.html) about enabling/disabling feature flags.
:::

## Soft deletion

1.  To the right of the attached file, open the menu **Actions - Delete**:
           <img height="195" width="583" src="https://support.swarmica.com/attachments/L/D/LDKWx8hZTdtU8hPm_a/Screenshot_2026-06-18_at_10.44.06.png" />
         
    To delete a screenshot, hover over it, then the Actions menu will appear in the upper right corner:
           <img height="239" width="576" src="https://support.swarmica.com/attachments/F/X/FXVP8vB2hJZZp_OI_a/Screenshot_2026-06-18_at_10.49.02.png" />
2.  In the window that appears, enter the name of the file to confirm the deletion, and select **Delete**:
           <img height="288" width="439" src="https://support.swarmica.com/attachments/f/2/f29woPUuwRNlgI9A_a/Screenshot_2026-06-18_at_10.45.19.png" />
3.  Opposite the deleted file, the corresponding inscription will appear:
         
      <img height="189" width="579" src="https://support.swarmica.com/attachments/C/p/Cpuh1yTyzC-VVdJF_a/Screenshot_2026-06-18_at_10.45.37.png" />

    In **Events**, there will be a record of the action:
          <img height="327" width="616" src="https://support.swarmica.com/attachments/j/x/jxE5QWmKjWMRACYq_a/Screenshot_2026-06-18_at_10.46.15.png" />

## Full deletion

1.  After selecting the **Delete** action, in the window that appears, enter the name of the file and activate the checkbox **Delete completely - Delete**:
          <img height="283" width="433" src="https://support.swarmica.com/attachments/Q/n/QnYlrDt0oY6xXYKm_a/Screenshot_2026-06-18_at_10.47.40.png" />
2.  The file will be completely deleted from the comment, without any mark that it was:
           <img height="183" width="613" src="https://support.swarmica.com/attachments/E/F/EFGCARSATD0mXWWm_a/Screenshot_2026-06-18_at_10.48.21.png" />