Layout/Media automatic remove


#1

Idea is to automatically clean some unused material from the server. In bigger solutions where several people are producing material to the server the problem is obvious. After some time there are many unused Layouts and other material, like photos in the server memory. This will be a problem in the future, because to remove this material it have to be made manually and when different people are making those, it will be very difficult.

The main idea is to add Tidy function for selected Layouts and some Library files.

When you add a new layout, there could be a Tidy Parameter that will define if that layout will be deleted if it is not assigned to any display or a Valid Until-date is over. This is useful like in commercial ads. Tidy Parameter values could be:
• Never automatically delete, value = 0
• After nn days when it is not any more in use, value = 1 or more. Then it will be deleted in the next day after layout is removed from every display. This will minimize the errors when the user is making changes in timings.
• Valid until, value = 14.05.2018. The layout will be deleted in the next day automatically

So there are two ways to delete layouts, after some date, or after some days when it is not anymore assigned to any display.

Also the material in the Library should have similar functions, if they are not used in any layout. There could be these parameters at least for Images, Videos and PDF-files. It could ask these parameters when you upload the file and it could be shown and edited also when you take the file from Library, and go to Edit page like bellow

So the Tidy Parameter could be almost same as for Layouts, except Valid Until-parameter which is not really logical in here.
• never automatically delete, value = 0
• after nn days when it is not any more in use, value = 1 or more. Then it will be deleted in the next day after it is not assigned to any layout. This will minimize the errors when the user is making changes in the Layouts.

Note. If that file is used in Template it should not be removed automatically.

That existing Tidy Library function is not anymore very important, because in there you can only make some general settings. In most of the cases the Tidy Parameters are not the same for all the Layouts or Library items. Some Layouts and Files are more valuable.