Many files and duplication


The problem I encountered is.

I'm running Drupal 9.3.6. in the H5P 2.0.0-alpha2 environment.

What I experience is that when H5P editing, a lot of temp files and single files are created. On the server, it fills up the storage space.

#du -shc /var/www/clients/client1/web20/web/sites/default/files/h5p/*

63G     /var/www/clients/client1/web20/web/sites/default/files/h5p/content

6.2M    /var/www/clients/client1/web20/web/sites/default/files/h5p/editor

62G     /var/www/clients/client1/web20/web/sites/default/files/h5p/exports

19M     /var/www/clients/client1/web20/web/sites/default/files/h5p/libraries

20K     /var/www/clients/client1/web20/web/sites/default/files/h5p/temp

125G    total

If I delete the temp directory, nothing happens, but you can see that there are 62G files in the "content" and "exports" directories.


I ran a duplication search on the content directory and found a lot of duplicates.

My question is, how can it be maintained? How to filter out unnecessary files?





Content types: