LPS-49635 only delete trash entry if model in trash
LPS-49635 delete group repository first

Deleting the main group repository is faster, as it will remove all file
entries and other resources in one go (including those of repositories
used for attachments, etc.).
LPS-49635 avoid calling remote service

At this point, permissions have been already checked, so it makes no
point to check permission per file entry, folder and shortcut.
LPS-49635 remove entries recursively
LPS-49635 SF
LPS-49635 remove unused code
LPS-49635 rename
LPS-49635 sort