I want to reduce the number of this menu in NextCloud28. Which file should I edit?
What is the path to that file and how do I edit it?
About the second image.

I want to reduce the number of this menu in NextCloud28. Which file should I edit?
What is the path to that file and how do I edit it?
About the second image.

There is not a single file, other apps can add entries. If you go through the source code, you can look for new FileAction:
https://github.com/search?q=repo%3Anextcloud%2Fserver%20new%20FileAction&type=code
In the main repository, you can find like this the default entries, and you can probably comment out the corresponding parts in your code.
I don’t know if there is an option that you can write an app that allows you to remove certain points, so you don’t have to apply the changes after each update.
similar topics: