Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Removing old media files? #6167

Closed
pardahlman opened this issue May 14, 2017 · 4 comments
Closed

Question: Removing old media files? #6167

pardahlman opened this issue May 14, 2017 · 4 comments

Comments

@pardahlman
Copy link

Hello team,

This question relates to 1.7.x CE.

I have a quite large list of products, each associating one or more media files. Over time images associated with the product will change and some images may end up not being used by any product. If I query the media-files endpoint I still see these images. That in itself is not a problem, in fact I think it is good design that they still show in the list all media files. However, it is desirable to be able to remove media files. Preferably I would like to remove the notion of the media file and the actual uploaded file. The reason for this is both to make it easy to navigate in the list of media files by removing files that are out of date, as well as saving space on disk.

I haven't found any way to do this through the API (which I understand is under development so perhaps it will be possible in the future?) or the GUI.

What is the intended work flow for removing old media files?

@nidup
Copy link
Contributor

nidup commented May 15, 2017

Hi @pardahlman

In fact, in Enterprise Edition, we can restore the previous version of a product and doing this, we can re-use a media not used anymore (only used by a past version of a product).

We discussed several times about the way to handle the cleanup of old media with the team and we conclude that we should implement a cleanup command (as we do with versions for instance). I don't have any ETA for this improvement.

Regarding the API, I don't know if we plan to add a endpoint to remove a file, maybe @ahocquard has more information regarding this 😉

Best regards.

@mickaelandrieu
Copy link
Contributor

mickaelandrieu commented May 15, 2017

Hello, as @NolwennP is the beloved product owner of the REST api, I think she could be interested to answer too.

Thanks for your feedback @pardahlman!

@pardahlman
Copy link
Author

Thanks for your input @nidup and @mickaelandrieu

I've elaborated my thoughts on this topic here: #6166 (comment). I think it might be something that @NolwennP might be interested in.

Cheers!

@ahocquard
Copy link
Contributor

@pardahlman

Discussed with @NolwennP :this problematic concerns the PIM in general, so no ETA in the API for this endpoint for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants