Cleaning media content (media items and layouts)

Hi all,
when a CMS starts to have way too much media in it, it starts to get slower which is very normal.

It is not possible to select multiple items and delete by one click from media library nor the layouts :frowning:
any ideas how the old media items and layouts could be deleted with out picking one by one?
If i have 500 media items, it will take ages to delete them by clicking one by one which is same for layouts as well.

Many thanks!

with best regards

There’s a library cleanup routine which will delete any media items not linked to a layout. So simply delete the layouts you no longer require, and then run the cleanup.

If it’s not enabled, you can enable it in the CMS settings. You’ll then see the button at the top right of the Library page.

I’d recommend taking a backup (database and CMS library) prior to running it so you can roll back if it does something you weren’t expecting.

Hi Alex,
thanks for the response :slight_smile:
i believe you are suggesting “Tidy” feature correct?
if yes,
that does clean only the media items, how about the layouts?
my point is,
we need to somehow be able to find out which layouts are not in use?
because we simply cannot delete the layouts if we are not sure which is in use and which isn’t.

When i try to delete a layout which is in use,
system does not warn me about layout being in use which is not any helping.

Best regards

Yes it’s the Library Tidy feature.

You would have to delete the layouts yourself.

Xibo can’t know if they’re no longer required unfortunately. Just because a layout isn’t currently scheduled doesn’t mean it’s safe to delete? We used to prevent deleting layouts that were scheduled, but it got alot of complaints that it was an unhelpful feature to have.

Thanks Alex :slight_smile:
Some layouts are scheduled and some not and some are not in use.
The best would be know if a layout is in use because once you make an attempt to delete it, system will then warn you about it being in use. This could be an extremely great help.

“We used to prevent deleting layouts that were scheduled, but it got alot of complaints that it was an unhelpful feature to have.”

I believe warning would be great because it will remind the user about it’s being in use.