# Delete linked files automatically when an entry is deleted

**URL:** https://discourse.jabref.org/t/delete-linked-files-automatically-when-an-entry-is-deleted/1121
**Category:** Features
**Created:** [April 21, 2018, 5:53am UTC](https://discourse.jabref.org/t/delete-linked-files-automatically-when-an-entry-is-deleted/1121 "2018-04-21T05:53:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zerkang](https://avatars.discourse-cdn.com/v4/letter/z/eb9ed0/32.png) [@zerkang](https://discourse.jabref.org/u/zerkang)
#### Post date: [April 21, 2018, 5:53am UTC](https://discourse.jabref.org/t/delete-linked-files-automatically-when-an-entry-is-deleted/1121/1 "2018-04-21T05:53:25Z")

</div>

I think it will be a very convenient feature that linked files can be automatically removed into a trash subfolder when an entry is being deleted from a jabref data file.

---

<div class="post-metadata">

### Author: ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)
#### Post date: [April 22, 2018, 3:08pm UTC](https://discourse.jabref.org/t/delete-linked-files-automatically-when-an-entry-is-deleted/1121/2 "2018-04-22T15:08:59Z")

</div>

Currently, there is the option to remove the file or to only remove the file link in the General Tab.

A move to trash option is currently technically not possible with Java.

---

<div class="post-metadata">

### Author: ![avm19](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@avm19](https://discourse.jabref.org/u/avm19)
#### Post date: [June 4, 2020, 1:23am UTC](https://discourse.jabref.org/t/delete-linked-files-automatically-when-an-entry-is-deleted/1121/3 "2020-06-04T01:23:28Z")

</div>

> [@Siedlerchr](#):
>
> Currently, there is the option to remove the file or to only remove the file link in the General Tab

This option seems to have disappeared, as of JabRef 5.1 . Is there an alternative option?

---

<div class="post-metadata">

### Author: ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)
#### Post date: [June 7, 2020, 5:22pm UTC](https://discourse.jabref.org/t/delete-linked-files-automatically-when-an-entry-is-deleted/1121/4 "2020-06-07T17:22:16Z")

</div>

In the general tab, there are stil the two context menu options on a file:  
Delete file permantly and remove file link
