[Skip to main content](#vessel-content)

#   Option to delete files when deleting files for downloading

##

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

8 years 2 months ago [\#297620](#297620) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  *[Option to delete files when deleting files for downloading](/forum/50-feature-request/895660-option-to-delete-files-when-deleting-files-for-downloading#297620 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.  Is it possible to implement an identical option for product download files?")* was created by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11

In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.

Is it possible to implement an identical option for product download files?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTU2NjAtb3B0aW9uLXRvLWRlbGV0ZS1maWxlcy13aGVuLWRlbGV0aW5nLWZpbGVzLWZvci1kb3dubG9hZGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 2 months ago [\#297621](#297621) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Option to delete files when deleting files for downloading](/forum/50-feature-request/895660-option-to-delete-files-when-deleting-files-for-downloading#297621 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.  Is it possible to implement an identical option for product download files?")*

Hi,

That same option already affects the files of the products the same way it affects the images.
So what you're talking about should already be there.
Moreover, the delete function for the files and the images uses the exact same function called deleteFiles in the file administrator/components/com_hikashop/classes/file.php
So since it already works for the images, I don't see why it wouldn't work for the files.
Note that I'm talking about the files that you can upload in the "Images &amp; file" area of the products. This doesn't apply for images and files uploaded through custom fields.

The following user(s) said Thank You: [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTU2NjAtb3B0aW9uLXRvLWRlbGV0ZS1maWxlcy13aGVuLWRlbGV0aW5nLWZpbGVzLWZvci1kb3dubG9hZGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

8 years 2 months ago [\#297757](#297757) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  Replied by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")* on topic *[Option to delete files when deleting files for downloading](/forum/50-feature-request/895660-option-to-delete-files-when-deleting-files-for-downloading#297757 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.  Is it possible to implement an identical option for product download files?")*

Hi Nicolas,

it was not clear that it worked too for files as the configuration is under images and also the entry in the change log did not explicitly state files.

All clear now though. Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTU2NjAtb3B0aW9uLXRvLWRlbGV0ZS1maWxlcy13aGVuLWRlbGV0aW5nLWZpbGVzLWZvci1kb3dubG9hZGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 2 months ago [\#297770](#297770) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Option to delete files when deleting files for downloading](/forum/50-feature-request/895660-option-to-delete-files-when-deleting-files-for-downloading#297770 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.  Is it possible to implement an identical option for product download files?")*

Hi,

Yes, at first, it wasn't meant for the files as well as it's less of a problem than images. The fact that it also works for the files is a by product of the modification because both files and images uses the same code.
I found out about it when checking the code in order to answer you ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84OTU2NjAtb3B0aW9uLXRvLWRlbGV0ZS1maWxlcy13aGVuLWRlbGV0aW5nLWZpbGVzLWZvci1kb3dubG9hZGluZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
