Decrease size of apps-folder

In the apps folder of the Nexcloud there is a “js” folder in the subfolder /calendar or /photos (and others). There are very large files in there. in /apps/photos/js/ e.g. a file photos-main.js or photos-main.js.map
Is there some way to shrink these files, do some kind of maintenance? Do they really have to be that big? My entire apps folder with all subfolders is almost 700 MB

Nextcloud version 29.0.2
Operating system and version Linux 6.1.67 x86_64
Apache or nginx version Apache 2.4.25
PHP version 8.1.2.

Well I guess ‘very large’ is kind of a relatvie term. :wink:

If you look at the sizes of some of the largest app folders, they are somwhere in the ranges of modern mobile apps, or even smaller…

--- /var/www/html/nextcloud/apps ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                         /..
  170.5 MiB [##########] /spreed
  102.4 MiB [######    ] /mail
   95.6 MiB [#####     ] /memories
   88.8 MiB [#####     ] /maps
   76.5 MiB [####      ] /calendar
   66.2 MiB [###       ] /tables
   62.9 MiB [###       ] /assistant                                                                                                                                                                                                                                                       
   60.6 MiB [###       ] /richdocuments
   59.6 MiB [###       ] /notify_push
   59.6 MiB [###       ] /deck
   52.9 MiB [###       ] /photos
  

No, I don’t think you can shrink any files or folders, but in theory you could remove the java script source map files (js.map), as they are not really needed for the apps to work.

However, I wouldn’t recommend doing this, as they would probably reappear when the apps are updated, in which case you couldn’t really use that space for other things, and you would have to repeat the process after every app update. Also, if you experience any kind of problem or an error with an app, you wouldn’t be able to properly debug the issue.

See also here: https://github.com/nextcloud/docker/issues/1914

1 Like

OK, my /apps/calendar folder is about 114 MB
the /apps/photos folder ist is about 104 MB

The files in the “js” subfolder have the largest share here.
But obviously this is the normal state.